remove unneeded chunk update warnings

This commit is contained in:
James Seibel
2026-03-15 16:46:40 -05:00
parent 2de50475f1
commit b9984c7723
@@ -80,12 +80,8 @@ public class WorldChunkUpdateManager
// but this check confirms it // but this check confirms it
&& !(levelWrapper instanceof IClientLevelWrapper)) && !(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."; // how did we get a server level wrapper on the client?
if (LOGGED_GET_ERROR_MESSAGES.add(errorMessage)) // this shouldn't happen, but just in case
{
LOGGER.warn(errorMessage);
}
return null; return null;
} }
else if ( else if (
@@ -94,12 +90,7 @@ public class WorldChunkUpdateManager
// when hosting a server we only care about the server wrappers // when hosting a server we only care about the server wrappers
&& !(levelWrapper instanceof IServerLevelWrapper)) && !(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."; // ignore client updates on the server
if (LOGGED_GET_ERROR_MESSAGES.add(errorMessage))
{
LOGGER.warn(errorMessage);
}
return null; return null;
} }