9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 20:39:10 +00:00

添加自定义压缩方案

This commit is contained in:
XiaoMoMi
2025-04-06 17:02:22 +08:00
parent c3e6a1b332
commit 7ba13b6a6a
11 changed files with 101 additions and 16 deletions

View File

@@ -212,12 +212,18 @@ public class BukkitWorldManager implements WorldManager, Listener {
this.lastVisitedUUID = null;
}
this.resetWorldArray();
} finally {
this.worldMapLock.writeLock().unlock();
}
for (Chunk chunk : ((World) world.platformWorld()).getLoadedChunks()) {
handleChunkUnload(ceWorld, chunk);
}
try {
ceWorld.worldDataStorage().close();
} catch (IOException e) {
CraftEngine.instance().logger().warn("Failed to close world storage", e);
}
}
@Override