mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-27 11:37:36 +01:00
Fixes loading and setting of spawn island.
https://github.com/BentoBoxWorld/BentoBox/issues/523 When loading islands the spawn setting was not being checked so spawn islands were not added to the spawn island map.
This commit is contained in:
parent
ce0b9569ca
commit
564f60bab3
@ -680,7 +680,6 @@ public class IslandsManager {
|
||||
oldSpawn.setSpawn(false);
|
||||
}
|
||||
}
|
||||
|
||||
this.spawn.put(spawn.getWorld(), spawn);
|
||||
spawn.setSpawn(true);
|
||||
}
|
||||
@ -705,6 +704,8 @@ public class IslandsManager {
|
||||
if (!islandCache.addIsland(island)) {
|
||||
// Quarantine the offending island
|
||||
toQuarantine.add(island);
|
||||
} else if (island.isSpawn()) {
|
||||
this.setSpawn(island);
|
||||
}
|
||||
});
|
||||
if (!toQuarantine.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user