mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Fixed bat flight not being cancelled when hanging synchronize the change to the client
This commit is contained in:
parent
ab08d9a4a6
commit
4ff4cd1ade
1 changed files with 3 additions and 0 deletions
|
@ -344,6 +344,9 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
|
||||||
entity.setVelocity(Vec3d.ZERO);
|
entity.setVelocity(Vec3d.ZERO);
|
||||||
entity.setSneaking(false);
|
entity.setSneaking(false);
|
||||||
entity.stopFallFlying();
|
entity.stopFallFlying();
|
||||||
|
getPhysics().cancelFlight(true);
|
||||||
|
|
||||||
|
setDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canHangAt(BlockPos pos) {
|
public boolean canHangAt(BlockPos pos) {
|
||||||
|
|
Loading…
Reference in a new issue