From c03907b5a33adbfa8dac96aeb6f098bff43f5b71 Mon Sep 17 00:00:00 2001 From: Yukiiro-Nite Date: Sun, 21 Jul 2019 01:01:42 -0400 Subject: [PATCH] Close all the files after unload instead of before - This ensures that all file handles are closed after a world is unloaded, since the unloadChunk function calls saveChunk, which opens files. - Should resolve issue #3995 --- .../nossr50/util/blockmeta/chunkmeta/HashChunkManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java index be8f4191d..532f87d66 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java @@ -242,7 +242,6 @@ public class HashChunkManager implements ChunkManager { return; } - closeAll(); String worldName = world.getName(); List keys = new ArrayList(store.keySet()); @@ -257,6 +256,7 @@ public class HashChunkManager implements ChunkManager { } } } + closeAll(); } @Override