mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed players cancelling flight in creative whenever they touch something
This commit is contained in:
parent
bc9ecd798d
commit
e0943fa48f
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ public class PlayerPhysics extends EntityPhysics<Pony> implements Tickable, Moti
|
|||
if (isGravityNegative()) {
|
||||
entity.setOnGround(!entity.world.isAir(new BlockPos(entity.getX(), entity.getY() + entity.getHeight() + 0.5F, entity.getZ())));
|
||||
|
||||
if (entity.isOnGround() || entity.horizontalCollision) {
|
||||
if (entity.isOnGround() || (!creative && entity.horizontalCollision)) {
|
||||
entity.abilities.flying = false;
|
||||
isFlyingEither = false;
|
||||
isFlyingSurvival = false;
|
||||
|
|
Loading…
Reference in a new issue