Fixed bat flight not being cancelled when hanging synchronize the change to the client

This commit is contained in:
Sollace 2022-12-04 22:56:17 +00:00
parent ab08d9a4a6
commit 4ff4cd1ade

View file

@ -344,6 +344,9 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
entity.setVelocity(Vec3d.ZERO);
entity.setSneaking(false);
entity.stopFallFlying();
getPhysics().cancelFlight(true);
setDirty();
}
public boolean canHangAt(BlockPos pos) {