Reduce amount of memory used after saving an Instance with the AnvilLoader

This commit is contained in:
jglrxavpok 2021-08-20 18:10:51 +02:00
parent 403e9fc8f1
commit f6c638c1e1

View File

@ -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);