Remove/fix Terraforged mixin 1.16
This commit is contained in:
+10
-5
@@ -3,7 +3,13 @@ package com.seibel.distanthorizons.forge.mixins.server;
|
||||
import net.minecraft.world.level.chunk.ChunkGenerator;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
#if PRE_MC_1_17_1
|
||||
#if MC_1_16_5
|
||||
@Mixin(ChunkGenerator.class)
|
||||
class MixinTFChunkGenerator
|
||||
{
|
||||
// not currently implemented, attempting to run with the mod enabled in the IDE causes the game to lock up
|
||||
}
|
||||
#elif PRE_MC_1_17_1
|
||||
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@@ -14,11 +20,11 @@ import java.util.Random;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.level.WorldGenLevel;
|
||||
import net.minecraft.world.level.chunk.ChunkGenerator;
|
||||
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
|
||||
|
||||
@Mixin(FeatureGenerator.class)
|
||||
public class MixinTFChunkGenerator {
|
||||
public class MixinTFChunkGenerator
|
||||
{
|
||||
|
||||
@Redirect(method = "decorate("
|
||||
+ "Lnet/minecraft/world/level/StructureFeatureManager;"
|
||||
@@ -51,6 +57,5 @@ public class MixinTFChunkGenerator {
|
||||
|
||||
#else
|
||||
@Mixin(ChunkGenerator.class)
|
||||
class MixinTFChunkGenerator {
|
||||
}
|
||||
class MixinTFChunkGenerator { }
|
||||
#endif
|
||||
Reference in New Issue
Block a user