From fecefc8bdf231cf253e117db53fed1d113c2952a Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 28 Oct 2023 11:52:53 -0500 Subject: [PATCH] Remove broken chunkSaveEvent, was actually chunkUnloadEvent --- .../core/api/internal/SharedApi.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 22897e21e..22872a2a6 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 @@ -64,8 +64,6 @@ public class SharedApi - - //=============// // constructor // //=============// @@ -143,7 +141,17 @@ public class SharedApi public void chunkBlockChangedEvent(IChunkWrapper chunk, ILevelWrapper level) { this.applyChunkUpdate(chunk, level, true); } public void chunkLoadEvent(IChunkWrapper chunk, ILevelWrapper level) { this.applyChunkUpdate(chunk, level, false); } - public void chunkSaveEvent(IChunkWrapper chunk, ILevelWrapper level) { this.applyChunkUpdate(chunk, level, false); } + public void chunkUnloadEvent(IChunkWrapper chunk, ILevelWrapper level) + { + // temporarily disabled since this was originally incorrectly designated as "chunkSaveEvent" + // but didn't actually fire on chunk save + // and generally this is unnecessary and drastically reduces LOD building performance + // when traveling around the world + if (false) + { + this.applyChunkUpdate(chunk, level, false); + } + } public void applyChunkUpdate(IChunkWrapper chunkWrapper, ILevelWrapper level, boolean updateNeighborChunks)