mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-03 05:51:43 +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<>();
|
Map<UUID, List<Island>> memberships = new HashMap<>();
|
||||||
handler.loadObjects()
|
handler.loadObjects()
|
||||||
.stream().filter(i -> i.getOwner() != null)
|
.stream().filter(i -> i.getOwner() != null)
|
||||||
|
.filter(i -> i.getWorld() != null)
|
||||||
.filter(i -> i.getWorld().equals(world))
|
.filter(i -> i.getWorld().equals(world))
|
||||||
.filter(i -> !i.isDoNotLoad())
|
.filter(i -> !i.isDoNotLoad())
|
||||||
.forEach(i -> {
|
.forEach(i -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user