From e53622d17ce9fbc681d2b43e5a5f3337b4a689ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20=C5=A0okala?= Date: Tue, 9 Jun 2026 16:49:07 +0200 Subject: [PATCH] Try to fix LOD builder task spam for 1.12.2 --- .../seibel/distanthorizons/cleanroom/CleanroomServerProxy.java | 2 +- common/src/main/resources/1_12_2.distanthorizons_at.cfg | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cleanroom/src/main/java/com/seibel/distanthorizons/cleanroom/CleanroomServerProxy.java b/cleanroom/src/main/java/com/seibel/distanthorizons/cleanroom/CleanroomServerProxy.java index 2d88eaebe..0fc98c658 100644 --- a/cleanroom/src/main/java/com/seibel/distanthorizons/cleanroom/CleanroomServerProxy.java +++ b/cleanroom/src/main/java/com/seibel/distanthorizons/cleanroom/CleanroomServerProxy.java @@ -126,7 +126,7 @@ public class CleanroomServerProxy implements AbstractModInitializer.IEventProxy @SubscribeEvent public void serverChunkSaveEvent(ChunkDataEvent.Save event) { - if (event.getWorld() instanceof WorldServer worldServer) + if (event.getWorld() instanceof WorldServer worldServer && event.getChunk().dirty) { MixinChunkMapCommon.onChunkSave(worldServer, event.getChunk()); } diff --git a/common/src/main/resources/1_12_2.distanthorizons_at.cfg b/common/src/main/resources/1_12_2.distanthorizons_at.cfg index 21faed46d..69f101178 100644 --- a/common/src/main/resources/1_12_2.distanthorizons_at.cfg +++ b/common/src/main/resources/1_12_2.distanthorizons_at.cfg @@ -2,4 +2,5 @@ public net.minecraft.client.renderer.EntityRenderer getFOVModifier(FZ)F public net.minecraft.client.renderer.ActiveRenderInfo MODELVIEW public net.minecraft.client.renderer.ActiveRenderInfo PROJECTION public net.minecraft.client.gui.GuiSlot amountScrolled -public net.minecraft.world.gen.ChunkProviderServer droppedChunks \ No newline at end of file +public net.minecraft.world.gen.ChunkProviderServer droppedChunks +public net.minecraft.world.chunk.Chunk dirty \ No newline at end of file