From 94bc41ab9d5768cc9667ed332060cf5a9d1b12c0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 2 Jun 2022 21:01:18 -0500 Subject: [PATCH] added flight check --- src/engine/objects/PlayerCharacter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index ef6f623a..9cf5b8ee 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4781,8 +4781,11 @@ public void dismissNecroPets() { }finally{ this.updateLock.writeLock().unlock(); } + if(AbstractCharacter.CanFly(this) == false && this.altitude > 0) + { + GroundPlayer(this); + } } - } @Override public void updateFlight() {