From d2327ae8367e7bf1622a8f82fd185564937edc86 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 6 Dec 2025 09:35:39 -0600 Subject: [PATCH] log incomplete world gen warnings --- .../worldGeneration/BatchGenerationEnvironment.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java index 06265cf61..00b1d1cde 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/BatchGenerationEnvironment.java @@ -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)