forked from MagicBane/Server
Players grounded properly when losing flight.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user