Avoid disabling player's flight mode if it's not enabled.
This commit is contained in:
@@ -581,6 +581,7 @@ public class FactionsPlayerListener implements Listener {
|
||||
|
||||
public void checkCanFly(FPlayer me) {
|
||||
if (!me.canFlyAtLocation() || me.checkIfNearbyEnemies()) {
|
||||
if (me.isFlying())
|
||||
me.setFFlying(false, false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user