moved flight check to MovementManager
This commit is contained in:
@@ -374,7 +374,7 @@ public enum MovementManager {
|
|||||||
|
|
||||||
// if stam less that 2 - time to force a landing
|
// if stam less that 2 - time to force a landing
|
||||||
if (pc.getStamina() < 10f || !canFly) {
|
if (pc.getStamina() < 10f || !canFly) {
|
||||||
|
PlayerCharacter.GroundPlayer(pc);
|
||||||
// dont call stop movement here as we want to
|
// dont call stop movement here as we want to
|
||||||
// preserve endloc
|
// preserve endloc
|
||||||
//pc.stopMovement();
|
//pc.stopMovement();
|
||||||
|
|||||||
@@ -4781,10 +4781,11 @@ public void dismissNecroPets() {
|
|||||||
}finally{
|
}finally{
|
||||||
this.updateLock.writeLock().unlock();
|
this.updateLock.writeLock().unlock();
|
||||||
}
|
}
|
||||||
if(AbstractCharacter.CanFly(this) == false && this.altitude > 0)
|
//temp removal
|
||||||
{
|
//if(AbstractCharacter.CanFly(this) == false && this.altitude > 0)
|
||||||
GroundPlayer(this);
|
//{
|
||||||
}
|
// GroundPlayer(this);
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user