From b9984c7723695b74e67298b117e71e84590c9679 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 15 Mar 2026 16:46:40 -0500 Subject: [PATCH] remove unneeded chunk update warnings --- .../chunkUpdating/WorldChunkUpdateManager.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/api/internal/chunkUpdating/WorldChunkUpdateManager.java b/core/src/main/java/com/seibel/distanthorizons/core/api/internal/chunkUpdating/WorldChunkUpdateManager.java index adc0899f4..0c9dffd92 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/api/internal/chunkUpdating/WorldChunkUpdateManager.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/api/internal/chunkUpdating/WorldChunkUpdateManager.java @@ -80,12 +80,8 @@ public class WorldChunkUpdateManager // but this check confirms it && !(levelWrapper instanceof IClientLevelWrapper)) { - String errorMessage = "Unable to find chunk update manager for level ["+levelWrapper+"]-["+levelWrapper.getClass().getName()+"], world environment: ["+world.environment+"], chunk updates may fail. This message will only be logged once."; - if (LOGGED_GET_ERROR_MESSAGES.add(errorMessage)) - { - LOGGER.warn(errorMessage); - } - + // how did we get a server level wrapper on the client? + // this shouldn't happen, but just in case return null; } else if ( @@ -94,12 +90,7 @@ public class WorldChunkUpdateManager // when hosting a server we only care about the server wrappers && !(levelWrapper instanceof IServerLevelWrapper)) { - String errorMessage = "Unable to find chunk update manager for level ["+levelWrapper+"]-["+levelWrapper.getClass().getName()+"], world environment: ["+world.environment+"], chunk updates may fail. This message will only be logged once."; - if (LOGGED_GET_ERROR_MESSAGES.add(errorMessage)) - { - LOGGER.warn(errorMessage); - } - + // ignore client updates on the server return null; }