Avoid disabling player's flight mode if it's not enabled.
This commit is contained in:
parent
31b8f0be25
commit
1d4a1c2a1a
@ -581,7 +581,8 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
|
|
||||||
public void checkCanFly(FPlayer me) {
|
public void checkCanFly(FPlayer me) {
|
||||||
if (!me.canFlyAtLocation() || me.checkIfNearbyEnemies()) {
|
if (!me.canFlyAtLocation() || me.checkIfNearbyEnemies()) {
|
||||||
me.setFFlying(false, false);
|
if (me.isFlying())
|
||||||
|
me.setFFlying(false, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (me.isFlying() || !FactionsPlugin.instance.getConfig().getBoolean("ffly.AutoEnable"))
|
if (me.isFlying() || !FactionsPlugin.instance.getConfig().getBoolean("ffly.AutoEnable"))
|
||||||
|
Loading…
Reference in New Issue
Block a user