From 963dc4a4046f4b838090236f7ca1561c193628d7 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Wed, 25 Dec 2024 08:21:42 -0600 Subject: [PATCH] minor DhLitWorldGenregion refactor --- .../worldGeneration/mimicObject/DhLitWorldGenRegion.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/mimicObject/DhLitWorldGenRegion.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/mimicObject/DhLitWorldGenRegion.java index 9b0ad23bc..f67316add 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/mimicObject/DhLitWorldGenRegion.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/mimicObject/DhLitWorldGenRegion.java @@ -76,6 +76,7 @@ public class DhLitWorldGenRegion extends WorldGenRegion private static ChunkStatus debugTriggeredForStatus = null; + public final ServerLevel serverLevel; public final DummyLightEngine lightEngine; public final BatchGenerationEnvironment.IEmptyChunkRetrievalFunc generator; public final int writeRadius; @@ -139,9 +140,10 @@ public class DhLitWorldGenRegion extends WorldGenRegion new ChunkDependencies(ImmutableList.copyOf(ChunkStatus.getStatusList()).reverse()), writeRadius, (WorldGenContext var1, ChunkStep var2, StaticCache2D var3, ChunkAccess var4) -> null), centerChunk); - #endif + this.firstPos = chunkList.get(0).getPos(); + this.serverLevel = serverLevel; this.generator = generator; this.lightEngine = lightEngine; this.writeRadius = writeRadius; @@ -205,7 +207,7 @@ public class DhLitWorldGenRegion extends WorldGenRegion ChunkAccess chunkAccess = this.getChunk(blockPos); if (chunkAccess instanceof LevelChunk) return true; - chunkAccess.setBlockState(blockPos, blockState, false); + chunkAccess.setBlockState(blockPos, blockState, /*isBlockMoving*/false); // This is for post ticking for water on gen and stuff like that. Not enabled // for now. // if (blockState.hasPostProcess(this, blockPos))