From 87e18351bedacac4485a698a888a5a99e5317ae3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 3 Jun 2022 08:42:08 -0500 Subject: [PATCH] moved flight check to MovementManager --- src/engine/gameManager/MovementManager.java | 2 +- src/engine/objects/PlayerCharacter.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/engine/gameManager/MovementManager.java b/src/engine/gameManager/MovementManager.java index b66ba50a..28440b24 100644 --- a/src/engine/gameManager/MovementManager.java +++ b/src/engine/gameManager/MovementManager.java @@ -374,7 +374,7 @@ public enum MovementManager { // if stam less that 2 - time to force a landing if (pc.getStamina() < 10f || !canFly) { - + PlayerCharacter.GroundPlayer(pc); // dont call stop movement here as we want to // preserve endloc //pc.stopMovement(); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 9cf5b8ee..bf3e0c19 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4781,10 +4781,11 @@ public void dismissNecroPets() { }finally{ this.updateLock.writeLock().unlock(); } - if(AbstractCharacter.CanFly(this) == false && this.altitude > 0) - { - GroundPlayer(this); - } + //temp removal + //if(AbstractCharacter.CanFly(this) == false && this.altitude > 0) + //{ + // GroundPlayer(this); + //} } } @Override