From 445901733d92ebf79d6fe344ef44dd134aadb12a Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 23 Sep 2022 14:45:06 +0200 Subject: [PATCH] Fixed bat pony hanging not being cancelled when they move. #64 --- .../java/com/minelittlepony/unicopia/entity/player/Pony.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 73bc9d18..a48a2e3a 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -362,7 +362,7 @@ public class Pony extends Living implements Transmittable, Copieab if (isHanging()) { ((LivingEntityDuck)entity).setLeaningPitch(0); - if (!isClient() && (getSpecies() != Race.BAT || (ticksHanging++ > 40 && hangingPosition.filter(getOrigin()::equals).filter(this::canHangAt).isPresent()))) { + if (!isClient() && (getSpecies() != Race.BAT || (ticksHanging++ > 40 && hangingPosition.filter(getOrigin().down()::equals).filter(this::canHangAt).isEmpty()))) { stopHanging(); } } else {