mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Reduce amount of memory used after saving an Instance with the AnvilLoader
This commit is contained in:
parent
403e9fc8f1
commit
f6c638c1e1
@ -233,6 +233,7 @@ public class AnvilLoader implements IChunkLoader {
|
||||
try {
|
||||
LOGGER.debug("Attempt saving at {} {}", chunk.getChunkX(), chunk.getChunkZ());
|
||||
mcaFile.writeColumn(column);
|
||||
mcaFile.forget(column);
|
||||
} catch (IOException e) {
|
||||
LOGGER.error("Failed to save chunk " + chunkX + ", " + chunkZ, e);
|
||||
EXCEPTION_MANAGER.handleException(e);
|
||||
|
Loading…
Reference in New Issue
Block a user