mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Ignore islands in worlds that are not loaded.
This commit is contained in:
parent
db3b339be2
commit
06caf1c147
@ -1581,6 +1581,7 @@ public class IslandsManager {
|
||||
Map<UUID, List<Island>> memberships = new HashMap<>();
|
||||
handler.loadObjects()
|
||||
.stream().filter(i -> i.getOwner() != null)
|
||||
.filter(i -> i.getWorld() != null)
|
||||
.filter(i -> i.getWorld().equals(world))
|
||||
.filter(i -> !i.isDoNotLoad())
|
||||
.forEach(i -> {
|
||||
|
Loading…
Reference in New Issue
Block a user