From d179badd92ebe3a4726236f80764debaea345c92 Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Fri, 25 Apr 2025 13:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=82=AE=E5=BC=B9=E5=8C=BA?= =?UTF-8?q?=E5=9D=97=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java b/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java index 43e4ca005..02dd720c0 100644 --- a/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java +++ b/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java @@ -44,7 +44,7 @@ public class ChunkLoadTool { chunksToUnload.forEach(chunk -> { var chunkPos = new ChunkPos(chunk); - controller.forceChunk(level, entity, chunkPos.x, chunkPos.z, false, false); + Mod.queueServerWork(10, () -> controller.forceChunk(level, entity, chunkPos.x, chunkPos.z, false, false)); }); loadedChunks.clear(); @@ -57,7 +57,7 @@ public class ChunkLoadTool { public static void unloadAllChunks(ServerLevel level, Entity entity, Set loadedChunks) { loadedChunks.forEach(chunk -> { var chunkPos = new ChunkPos(chunk); - controller.forceChunk(level, entity, chunkPos.x, chunkPos.z, false, false); + Mod.queueServerWork(10, () -> controller.forceChunk(level, entity, chunkPos.x, chunkPos.z, false, false)); }); }