Browse Source

added flight check

pull/13/head
FatBoy-DOTC 2 years ago
parent
commit
94bc41ab9d
  1. 5
      src/engine/objects/PlayerCharacter.java

5
src/engine/objects/PlayerCharacter.java

@ -4781,8 +4781,11 @@ public void dismissNecroPets() { @@ -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() {

Loading…
Cancel
Save