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)