Skip to content

Commit

Permalink
safe to check existing before adding
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Mar 19, 2023
1 parent eecb470 commit 574bf47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/hsgamer/autoislandpurge/PurgeTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private void checkIslands() {
long days = TimeUnit.MILLISECONDS.toDays(duration);
return days > instance.getSettings().getOfflineDays();
})
.filter(i -> !islands.contains(i))
.forEach(islands::add);
}

Expand Down

0 comments on commit 574bf47

Please sign in to comment.