From 4ff4cd1adebc37168c7b1cacbebd6509d91cfed4 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 4 Dec 2022 22:56:17 +0000 Subject: [PATCH] Fixed bat flight not being cancelled when hanging synchronize the change to the client --- .../java/com/minelittlepony/unicopia/entity/player/Pony.java | 3 +++ 1 file changed, 3 insertions(+) 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 799ac457..a96dbf54 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -344,6 +344,9 @@ public class Pony extends Living implements Transmittable, Copieab entity.setVelocity(Vec3d.ZERO); entity.setSneaking(false); entity.stopFallFlying(); + getPhysics().cancelFlight(true); + + setDirty(); } public boolean canHangAt(BlockPos pos) {