Various minor

Fix download world spawnpoint
Fix regenallroads on augmented world
Ensure all chunks have unloaded before unloading a world
This commit is contained in:
Jesse Boyd
2017-09-20 00:33:29 +10:00
parent ce90b36d28
commit d97ff94465
4 changed files with 36 additions and 10 deletions

View File

@ -218,7 +218,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
List<PlotPlayer> players = plot.getPlayersInPlot();
if (players.isEmpty() && PlotPlayer.wrap(plot.owner) == null) {
for (Chunk chunk : world.getLoadedChunks()) {
chunk.unload(true, false);
if (!chunk.unload(true, false)) return;
if (System.currentTimeMillis() - start > 20) {
return;
}