mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-01 07:03:26 +01:00
Prevent null island worlds from blocking purging. #2500
This commit is contained in:
parent
6896a4579c
commit
8ba3f034f7
@ -133,6 +133,7 @@ public class AdminPurgeCommand extends CompositeCommand implements Listener {
|
|||||||
// Process islands in one pass, logging and adding to the set if applicable
|
// Process islands in one pass, logging and adding to the set if applicable
|
||||||
getPlugin().getIslands().getIslands().stream()
|
getPlugin().getIslands().getIslands().stream()
|
||||||
.filter(i -> !i.isSpawn()).filter(i -> !i.getPurgeProtected())
|
.filter(i -> !i.isSpawn()).filter(i -> !i.getPurgeProtected())
|
||||||
|
.filter(i -> i.getWorld() != null) // to handle currently unloaded world islands
|
||||||
.filter(i -> i.getWorld().equals(this.getWorld())).filter(Island::isOwned).filter(
|
.filter(i -> i.getWorld().equals(this.getWorld())).filter(Island::isOwned).filter(
|
||||||
i -> i.getMemberSet().stream()
|
i -> i.getMemberSet().stream()
|
||||||
.allMatch(member -> (currentTimeMillis
|
.allMatch(member -> (currentTimeMillis
|
||||||
|
Loading…
Reference in New Issue
Block a user