Avoid disabling player's flight mode if it's not enabled.

This commit is contained in:
Stefan923 2020-05-09 14:53:53 +03:00 committed by BrowkS
parent 31b8f0be25
commit 1d4a1c2a1a

View File

@ -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;
}