From ab82529a4b5012d4e02fa4ce437435c5acd59ab5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 27 Aug 2022 16:31:07 -0400 Subject: [PATCH] Players grounded properly when losing flight. --- src/engine/objects/PlayerCharacter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index c7a55f57..464fb563 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4771,6 +4771,12 @@ public void dismissNecroPets() { } } + // Ground players who cannot fly but are currently flying + + if (CanFly(this) && + this.getMovementState().equals(MovementState.FLYING)) + GroundPlayer(this); + RealmMap.updateRealm(this); updateBlessingMessage();