WorldGen: Quick change to respect VersionConstants

Changed it so that even in FULL mode, it respects the VersionConstants
setting. Who knows if one day we might get even FULL chunk gen in
multithreading~
This commit is contained in:
tom lee
2021-12-12 23:14:52 +08:00
parent 1c9fe23633
commit 9e882951ef
@@ -232,9 +232,9 @@ public class LodWorldGenerator
Runnable method = (() -> {generateChunk(newPos, newGenerationMode,
newLodBuilder, newLodDimension, serverWorld);});
if (newGenerationMode == DistanceGenerationMode.FULL
|| VERSION_CONSTANTS.isWorldGeneratorSingleThreaded(newGenerationMode))
if (VERSION_CONSTANTS.isWorldGeneratorSingleThreaded(newGenerationMode))
{
// --Note: This is now using version constants--
// if we are using FULL generation there is no reason
// to queue up a bunch of generation requests,
// because MC's internal server (as of 1.16.5) only
@@ -268,7 +268,7 @@ public class LodWorldGenerator
// be added to the current LodDimension
if (lodDim.regionIsInRange(pos.getX() / LodUtil.REGION_WIDTH_IN_CHUNKS, pos.getZ() / LodUtil.REGION_WIDTH_IN_CHUNKS))
{
{
switch (generationMode)
{
case NONE: