mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-29 19:41:24 +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");
|
||||
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.sendMessage("protection.flags.PREVENT_TELEPORT_WHEN_FALLING.hint");
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user