Players grounded properly when losing flight.

This commit is contained in:
2022-08-27 17:14:50 -04:00
parent 5fe518f8a1
commit ebeda7d7ba
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -1610,7 +1610,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
// Check if calculations affected flight. // Check if calculations affected flight.
if (this.getGridObjectType().equals(GameObjectType.PlayerCharacter)) { if (this.getObjectType().equals(GameObjectType.PlayerCharacter)) {
player = (PlayerCharacter) this; player = (PlayerCharacter) this;
// Ground players who cannot fly but are currently flying // Ground players who cannot fly but are currently flying
-4
View File
@@ -4781,10 +4781,6 @@ public void dismissNecroPets() {
}finally{ }finally{
this.updateLock.writeLock().unlock(); this.updateLock.writeLock().unlock();
} }
//temp removal
if(AbstractCharacter.CanFly(this) == false && this.altitude > 0)
GroundPlayer(this);
} }
} }
@Override @Override