Avoid disabling player's flight mode if it's not enabled.
This commit is contained in:
parent
31b8f0be25
commit
1d4a1c2a1a
@ -581,6 +581,7 @@ 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()) {
|
||||||
|
if (me.isFlying())
|
||||||
me.setFFlying(false, false);
|
me.setFFlying(false, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user