diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 2413f8fb..32e9e6e7 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -1610,7 +1610,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject { // Check if calculations affected flight. - if (this.getGridObjectType().equals(GameObjectType.PlayerCharacter)) { + if (this.getObjectType().equals(GameObjectType.PlayerCharacter)) { player = (PlayerCharacter) this; // Ground players who cannot fly but are currently flying diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index c7a55f57..600af48b 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4781,10 +4781,6 @@ public void dismissNecroPets() { }finally{ this.updateLock.writeLock().unlock(); } - //temp removal - if(AbstractCharacter.CanFly(this) == false && this.altitude > 0) - GroundPlayer(this); - } } @Override