mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
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
This commit is contained in:
parent
308e3a4b1f
commit
c03907b5a3
@ -242,7 +242,6 @@ public class HashChunkManager implements ChunkManager {
|
||||
return;
|
||||
}
|
||||
|
||||
closeAll();
|
||||
String worldName = world.getName();
|
||||
|
||||
List<String> keys = new ArrayList<String>(store.keySet());
|
||||
@ -257,6 +256,7 @@ public class HashChunkManager implements ChunkManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
closeAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user