Optimized condition

This commit is contained in:
Fabrizio La Rosa 2020-07-29 00:41:07 +02:00
parent 94040e4286
commit 4c494c572e

View File

@ -653,9 +653,9 @@ public class Block implements Listener {
island.hasRole(IslandRole.Member, player.getUniqueId()) || island.hasRole(IslandRole.Member, player.getUniqueId()) ||
island.hasRole(IslandRole.Coop, player.getUniqueId()) || island.hasRole(IslandRole.Coop, player.getUniqueId()) ||
island.hasRole(IslandRole.Operator, player.getUniqueId()) || island.hasRole(IslandRole.Operator, player.getUniqueId()) ||
(visitors.contains(player.getUniqueId()) && (!ignoreVisitors &&
player.hasPermission("fabledskyblock.generator.anywhere") && visitors.contains(player.getUniqueId()) &&
!ignoreVisitors); player.hasPermission("fabledskyblock.generator.anywhere"));
if (isMember && islandManager.isLocationAtIsland(island, player.getLocation(), world)) { if (isMember && islandManager.isLocationAtIsland(island, player.getLocation(), world)) {
possiblePlayers.add(player); possiblePlayers.add(player);