This commit is contained in:
Jesse Boyd 2017-07-08 21:56:15 +10:00
parent 248751378b
commit 73318f23a1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -146,7 +146,7 @@ public final class NukkitMain extends PluginBase implements Listener, IPlotMain
} }
} }
if (unload != null) { if (unload != null) {
Map<String, BaseFullChunk> chunks = unload.getChunks(); Map<Long, BaseFullChunk> chunks = unload.getChunks();
BaseFullChunk[] toUnload = chunks.values().toArray(new BaseFullChunk[chunks.size()]); BaseFullChunk[] toUnload = chunks.values().toArray(new BaseFullChunk[chunks.size()]);
for (BaseFullChunk chunk : toUnload) { for (BaseFullChunk chunk : toUnload) {
chunk.unload(true, false); chunk.unload(true, false);