log incomplete world gen warnings

This commit is contained in:
James Seibel
2025-12-06 09:35:39 -06:00
parent ea92a8f922
commit d2327ae836
@@ -120,6 +120,7 @@ public final class BatchGenerationEnvironment implements IBatchGeneratorEnvironm
public final StepFeatures stepFeatures = new StepFeatures(this);
public boolean unsafeThreadingRecorded = false;
public boolean generatedChunkWithoutBiomeWarningLogged = false;
public int unknownExceptionCount = 0;
public long lastExceptionTriggerTime = 0;
@@ -525,6 +526,15 @@ public final class BatchGenerationEnvironment implements IBatchGeneratorEnvironm
{
genEvent.resultConsumer.accept(wrappedChunk);
}
else
{
// this shouldn't happen, but if it does log it
if (!this.generatedChunkWithoutBiomeWarningLogged)
{
this.generatedChunkWithoutBiomeWarningLogged = true;
LOGGER.warn("Chunk [" + dhPos + "] wasn't generated up to BIOMES, world gen may appear empty.");
}
}
}
}
catch (CompletionException | UncheckedInterruptedException e)