mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 12:45:25 +01:00
Invert If statment
This commit is contained in:
parent
a61b3063aa
commit
3ab5bd3e76
@ -180,10 +180,10 @@ public class Move implements Listener {
|
||||
}
|
||||
|
||||
private void teleportPlayerToIslandSpawn(Player player, IslandWorld world, Island island) {
|
||||
if (island.getVisit().isVisitor(player.getUniqueId())) {
|
||||
player.teleport(island.getLocation(world, IslandEnvironment.Visitor));
|
||||
} else {
|
||||
if (!island.getVisit().isVisitor(player.getUniqueId())) {
|
||||
player.teleport(island.getLocation(world, IslandEnvironment.Main));
|
||||
} else {
|
||||
player.teleport(island.getLocation(world, IslandEnvironment.Visitor));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user