Fixed ponies' wings flapping in their sleep

This commit is contained in:
Sollace 2018-10-28 22:24:01 +02:00
parent ddbe4c3969
commit 85462d5a69

View file

@ -100,7 +100,7 @@ public class Pony implements IPony {
@Override @Override
public boolean isFlying(EntityLivingBase entity) { public boolean isFlying(EntityLivingBase entity) {
return !(entity.onGround || entity.isRiding() || entity.isOnLadder() || entity.isInWater()); return !(entity.onGround || entity.isRiding() || entity.isOnLadder() || entity.isInWater() || entity.isPlayerSleeping());
} }
@Override @Override