mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed flying not being disabled for non-flying diguises
This commit is contained in:
parent
c4c9d288a9
commit
db23786b70
1 changed files with 38 additions and 36 deletions
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue