Skip to content

Commit

Permalink
Merge pull request #595 from zyxkad/env-detector-patch
Browse files Browse the repository at this point in the history
Call livingEntityToLua but not entityToLua when serializing animal
  • Loading branch information
zyxkad authored Apr 27, 2024
2 parents 4acaa1c + fc35203 commit 7014e65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static Map<String, Object> livingEntityToLua(LivingEntity entity) {
}

public static Map<String, Object> animalToLua(Animal animal, ItemStack itemInHand) {
Map<String, Object> data = entityToLua(animal);
Map<String, Object> data = livingEntityToLua(animal);
data.put("baby", animal.isBaby());
data.put("inLove", animal.isInLove());
data.put("aggressive", animal.isAggressive());
Expand Down

0 comments on commit 7014e65

Please sign in to comment.