diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilEnt.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilEnt.java index e0f96dc9f..8587871ee 100644 --- a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilEnt.java +++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilEnt.java @@ -78,10 +78,13 @@ public class UtilEnt public static void Leash(LivingEntity leashed, Entity holder, boolean pull, boolean breakable) { - leashed.setPullWhileLeashed(pull); - leashed.setShouldBreakLeash(breakable); - leashed.setLeashHolder(holder); + + if (!(((CraftLivingEntity)leashed).getHandle() instanceof EntityInsentient)) + return; + + ((EntityInsentient)((CraftLivingEntity)leashed).getHandle()).setPullWhileLeashed(pull); + ((EntityInsentient)((CraftLivingEntity)leashed).getHandle()).setShouldBreakLeash(breakable); } public static void addLookAtPlayerAI(Entity entity, float dist)