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,7 +581,8 @@ public class FactionsPlayerListener implements Listener {
public void checkCanFly(FPlayer me) {
if (!me.canFlyAtLocation() || me.checkIfNearbyEnemies()) {
me.setFFlying(false, false);
if (me.isFlying())
me.setFFlying(false, false);
return;
}
if (me.isFlying() || !FactionsPlugin.instance.getConfig().getBoolean("ffly.AutoEnable"))