Skip to content

Commit

Permalink
call livingEntityToLua but not entityToLua when serializing animal
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Apr 25, 2024
1 parent 4acaa1c commit fc35203
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 fc35203

Please sign in to comment.