Skip to content

Commit 77bd4e8

Browse files
committed
Remove redundant location check for visitor status in Island.java
1 parent 36df72a commit 77bd4e8

File tree

1 file changed

+0
-5
lines changed
  • src/main/java/world/bentobox/bentobox/database/objects

1 file changed

+0
-5
lines changed

src/main/java/world/bentobox/bentobox/database/objects/Island.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,6 @@ private boolean playerIsVisitor(Player player) {
851851
if (player.getGameMode() == GameMode.SPECTATOR) {
852852
return false;
853853
}
854-
Location loc = player.getLocation();
855-
if (location == null) {
856-
// This will only be true if the player has never played. Allow them to be a visitor.
857-
return true;
858-
}
859854
return onIsland(player.getLocation()) && getRank(User.getInstance(player)) == RanksManager.VISITOR_RANK;
860855
}
861856

0 commit comments

Comments
 (0)