From e1ca398b8f24d82d1c5f79a345cc641a2366d680 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 4 May 2024 15:35:29 -0500 Subject: [PATCH] Fix updating chunk count not clearing on world close --- .../com/seibel/distanthorizons/core/api/internal/SharedApi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/api/internal/SharedApi.java b/core/src/main/java/com/seibel/distanthorizons/core/api/internal/SharedApi.java index c8ffe6de8..f10c551ad 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/api/internal/SharedApi.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/api/internal/SharedApi.java @@ -110,6 +110,8 @@ public class SharedApi ThreadPoolUtil.shutdownThreadPools(); DebugRenderer.clearRenderables(); MC_RENDER.clearTargetFrameBuffer(); + // needs to be closed on world shutdown to clear out un-processed chunks + UPDATING_CHUNK_POS_SET.clear(); // recommend that the garbage collector cleans up any objects from the old world and thread pools System.gc();