From cfe635bdbac9dc5666687b89f9e51fb128ff8817 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 27 Aug 2023 22:02:08 +0100 Subject: [PATCH] Fixed changelings being still able to use the old flight system --- src/main/java/com/minelittlepony/unicopia/FlightType.java | 2 +- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/FlightType.java b/src/main/java/com/minelittlepony/unicopia/FlightType.java index 762a5f54..47b0848d 100644 --- a/src/main/java/com/minelittlepony/unicopia/FlightType.java +++ b/src/main/java/com/minelittlepony/unicopia/FlightType.java @@ -31,7 +31,7 @@ public enum FlightType { } public boolean canFlyCreative(PlayerEntity player) { - return this == INSECTOID || player.isCreative() || player.isSpectator(); + return player.isCreative() || player.isSpectator(); } public SoundEvent getWingFlapSound() { 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 0f607c6d..5eb6e19b 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -357,7 +357,7 @@ public class PlayerPhysics extends EntityPhysics implements Tickab pony.getMagicalReserves().getCharge().set(0); } - if (!creative && type.isAvian()) { + if (!creative) { checkAvianTakeoffConditions(velocity); } }