Fixed changelings being still able to use the old flight system

This commit is contained in:
Sollace 2023-08-27 22:02:08 +01:00
parent d22140eccd
commit cfe635bdba
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -357,7 +357,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
pony.getMagicalReserves().getCharge().set(0);
}
if (!creative && type.isAvian()) {
if (!creative) {
checkAvianTakeoffConditions(velocity);
}
}