mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed bat pony hanging not being cancelled when they move. #64
This commit is contained in:
parent
f244b60f16
commit
445901733d
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ public class Pony extends Living<PlayerEntity> 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 {
|
||||
|
|
Loading…
Reference in a new issue