mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-06 15:31:46 +01:00
Fixed the condition for PREVENT_TELEPORT_WHEN_FALLING in IslandGoCommand
This commit is contained in:
parent
f662efc43e
commit
460911c92b
@ -32,7 +32,7 @@ public class IslandGoCommand extends CompositeCommand {
|
|||||||
user.sendMessage("general.errors.no-island");
|
user.sendMessage("general.errors.no-island");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((getIWM().inWorld(user.getWorld()) && !Flags.PREVENT_TELEPORT_WHEN_FALLING.isSetForWorld(user.getWorld()))
|
if ((getIWM().inWorld(user.getWorld()) && Flags.PREVENT_TELEPORT_WHEN_FALLING.isSetForWorld(user.getWorld()))
|
||||||
&& user.getPlayer().getFallDistance() > 0) {
|
&& user.getPlayer().getFallDistance() > 0) {
|
||||||
user.sendMessage("protection.flags.PREVENT_TELEPORT_WHEN_FALLING.hint");
|
user.sendMessage("protection.flags.PREVENT_TELEPORT_WHEN_FALLING.hint");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user