From fc3520329bb138dd6e2988ee467c4be9afcba323 Mon Sep 17 00:00:00 2001 From: zyxkad Date: Thu, 25 Apr 2024 15:37:23 -0600 Subject: [PATCH] call livingEntityToLua but not entityToLua when serializing animal fix #592 --- .../de/srendi/advancedperipherals/common/util/LuaConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/srendi/advancedperipherals/common/util/LuaConverter.java b/src/main/java/de/srendi/advancedperipherals/common/util/LuaConverter.java index 40741dcb9..5bef952ad 100644 --- a/src/main/java/de/srendi/advancedperipherals/common/util/LuaConverter.java +++ b/src/main/java/de/srendi/advancedperipherals/common/util/LuaConverter.java @@ -47,7 +47,7 @@ public static Map livingEntityToLua(LivingEntity entity) { } public static Map animalToLua(Animal animal, ItemStack itemInHand) { - Map data = entityToLua(animal); + Map data = livingEntityToLua(animal); data.put("baby", animal.isBaby()); data.put("inLove", animal.isInLove()); data.put("aggressive", animal.isAggressive());