Revert "Fix holes when using Chunky"

This commit is contained in:
James Seibel
2024-12-14 12:21:39 -06:00
parent a9f1e8587c
commit 5f1180a5dd
@@ -234,37 +234,36 @@ public abstract class AbstractModInitializer
LOGGER.warn(startingString + "[WWOO] "+ wwooWarning);
}
// if chunky is active we need to run chunk update synchronously to prevent holes if DH gets overwhelmed
SharedApi.runChunkUpdatesAsync = !modChecker.isModLoaded("chunky");
if (SharedApi.runChunkUpdatesAsync)
// Chunky
boolean chunkyPresent = false;
try
{
LOGGER.info("Chunky detected. DH will run chunk updates on the server thread. This will prevent data loss or holes but may cause stuttering.");
Class.forName("org.popcraft.chunky.api.ChunkyAPI");
chunkyPresent = true;
}
catch (ClassNotFoundException ignore) { }
//// Chunky
//boolean chunkyPresent = modChecker.isModLoaded("chunky");
//if (chunkyPresent)
//{
// // Chunky can generate chunks faster than DH can process them,
// // causing holes in the LODs.
// // Generally it's better and faster to use DH's world generator.
//
// String chunkyWarning = "Chunky can cause DH LODs to have holes " +
// "since Chunky can generate chunks faster than DH can process them. \n" +
// "Using DH's distant generator instead of chunky or increasing DH's CPU thread count can resolve the issue.";
//
// if (showChatWarnings)
// {
// String message =
// // orange text
// "\u00A76" + "Distant Horizons: Chunky detected." + "\u00A7r\n" +
// chunkyWarning;
// ClientApi.INSTANCE.showChatMessageNextFrame(message);
// }
//
// LOGGER.warn(startingString + "[Chunky] "+ chunkyWarning);
//}
if (chunkyPresent)
{
// Chunky can generate chunks faster than DH can process them,
// causing holes in the LODs.
// Generally it's better and faster to use DH's world generator.
String chunkyWarning = "Chunky can cause DH LODs to have holes " +
"since Chunky can generate chunks faster than DH can process them. \n" +
"Using DH's distant generator instead of chunky or increasing DH's CPU thread count can resolve the issue.";
if (showChatWarnings)
{
String message =
// orange text
"\u00A76" + "Distant Horizons: Chunky detected." + "\u00A7r\n" +
chunkyWarning;
ClientApi.INSTANCE.showChatMessageNextFrame(message);
}
LOGGER.warn(startingString + "[Chunky] "+ chunkyWarning);
}
}