Fixed flying not being disabled for non-flying diguises

This commit is contained in:
Sollace 2020-10-02 14:04:10 +02:00
parent c4c9d288a9
commit db23786b70

View file

@ -106,6 +106,7 @@ public class PlayerPhysics extends EntityPhysics<Pony> implements Tickable, Moti
} }
} }
if (canFly) {
if (isFlying()) { if (isFlying()) {
int level = pony.getLevel().get() + 1; int level = pony.getLevel().get() + 1;
@ -159,6 +160,7 @@ public class PlayerPhysics extends EntityPhysics<Pony> implements Tickable, Moti
} }
} }
} }
}
lastPos = new Vec3d(entity.getX(), 0, entity.getZ()); lastPos = new Vec3d(entity.getX(), 0, entity.getZ());