Fix old version compiling

This commit is contained in:
James Seibel
2025-12-06 10:05:32 -06:00
parent 7888de8200
commit 9ecbb9cc9f
4 changed files with 10 additions and 4 deletions
@@ -18,7 +18,6 @@
*/
package com.seibel.distanthorizons.common.wrappers.chunk;
import com.google.gson.internal.NonNullElementWrapperList;
import com.seibel.distanthorizons.common.wrappers.block.BiomeWrapper;
import com.seibel.distanthorizons.common.wrappers.block.BlockStateWrapper;
import com.seibel.distanthorizons.common.wrappers.misc.MutableBlockPosWrapper;
@@ -38,10 +38,17 @@ import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.chunk.ChunkStatus;
#elif MC_VER <= MC_1_20_6
import net.minecraft.core.registries.Registries;
#elif MC_VER <= MC_1_21_3
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.chunk.ChunkStatus;
#elif MC_VER <= MC_1_21_9
#elif MC_VER <= MC_1_21_3
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.chunk.status.ChunkStatus;
#elif MC_VER <= MC_1_21_8
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.chunk.status.ChunkStatus;
#elif MC_VER <= MC_1_21_9
import net.minecraft.world.level.chunk.PalettedContainerFactory;
#else
import net.minecraft.world.level.chunk.PalettedContainerFactory;
#endif
@@ -112,7 +112,7 @@ public final class ThreadWorldGenParams
private StructureCheck createStructureCheck(GlobalWorldGenParams param)
{
return new StructureCheck(param.chunkScanner, param.registry, param.structures,
param.level.dimension(), param.generator, this.level, param.generator.getBiomeSource(), param.worldSeed,
param.mcServerLevel.dimension(), param.generator, this.level, param.generator.getBiomeSource(), param.worldSeed,
param.dataFixer);
}
#else
@@ -102,7 +102,7 @@ public final class StepStructureStart extends AbstractWorldGenStep
this.environment.globalParams.worldSeed);
#elif MC_VER <= MC_1_21_3
this.environment.globalParams.generator.createStructures(this.environment.globalParams.registry,
this.environment.globalParams.level.getChunkSource().getGeneratorState(),
this.environment.globalParams.mcServerLevel.getChunkSource().getGeneratorState(),
tParams.structFeatManager, chunk, this.environment.globalParams.structures);
#else
this.environment.globalParams.generator.createStructures(this.environment.globalParams.registry,