diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepFeatures.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepFeatures.java index 7368dfbc4..45e543f49 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepFeatures.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepFeatures.java @@ -73,14 +73,13 @@ public final class StepFeatures #if PRE_MC_1_18_2 worldGenRegion.setOverrideCenter(chunk.getPos()); environment.params.generator.applyBiomeDecoration(worldGenRegion, tParams.structFeat); - Heightmap.primeHeightmaps(chunk, STATUS.heightmapsAfter()); - BatchGenerationEnvironment.clearDistantGenerationMixinData(); #else environment.params.generator.applyBiomeDecoration(worldGenRegion, chunk, tParams.structFeat.forWorldGenRegion(worldGenRegion)); + #endif + Heightmap.primeHeightmaps(chunk, STATUS.heightmapsAfter()); BatchGenerationEnvironment.clearDistantGenerationMixinData(); - #endif } catch (ReportedException e) { diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepSurface.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepSurface.java index 3dd975686..6321d955d 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepSurface.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/worldGeneration/step/StepSurface.java @@ -30,23 +30,21 @@ import net.minecraft.server.level.WorldGenRegion; import net.minecraft.world.level.chunk.ChunkAccess; import net.minecraft.world.level.chunk.ChunkStatus; import net.minecraft.world.level.chunk.ProtoChunk; +import net.minecraft.world.level.levelgen.Heightmap; public final class StepSurface { - /** - * - */ private final BatchGenerationEnvironment environment; - /** - * @param batchGenerationEnvironment - */ + public final ChunkStatus STATUS = ChunkStatus.SURFACE; + + + public StepSurface(BatchGenerationEnvironment batchGenerationEnvironment) { - environment = batchGenerationEnvironment; + this.environment = batchGenerationEnvironment; } - public final ChunkStatus STATUS = ChunkStatus.SURFACE; public void generateGroup( ThreadedParameters tParams, WorldGenRegion worldGenRegion,