From e0943fa48f39abbcca37f26ed4f9346bf1672bf7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 23 Feb 2021 18:09:14 +0200 Subject: [PATCH] Fixed players cancelling flight in creative whenever they touch something --- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index 1eb470c0..db9962f5 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -113,7 +113,7 @@ public class PlayerPhysics extends EntityPhysics 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;