Fix deletion of islands when chunks are not deleted. Fixes #2241
This commit is contained in:
parent
f256c3af8d
commit
22f398fe53
|
@ -271,10 +271,12 @@ public class IslandsManager {
|
|||
handler.deleteObject(island);
|
||||
// Remove players from island
|
||||
removePlayersFromIsland(island);
|
||||
if (!plugin.getSettings().isKeepPreviousIslandOnReset()) {
|
||||
// Remove blocks from world
|
||||
plugin.getIslandDeletionManager().getIslandChunkDeletionManager().add(new IslandDeletion(island));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of islands made on this server. Used by stats.
|
||||
|
|
|
@ -312,7 +312,7 @@ public class NewIsland {
|
|||
|
||||
private void tidyUp(Island oldIsland) {
|
||||
// Delete old island
|
||||
if (oldIsland != null && !plugin.getSettings().isKeepPreviousIslandOnReset()) {
|
||||
if (oldIsland != null) {
|
||||
// Delete the old island
|
||||
plugin.getIslands().deleteIsland(oldIsland, true, user.getUniqueId());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue