Remove/fix Terraforged mixin 1.16

This commit is contained in:
James Seibel
2023-08-05 18:14:46 -05:00
parent b41119232e
commit c90efed0fe
2 changed files with 11 additions and 6 deletions
@@ -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
+1 -1
View File
@@ -38,7 +38,7 @@ fabric_api_version=0.42.0+1.16
forge_version=36.2.39
# Forge mod versions
starlight_version_forge=
terraforged_version=3285909
terraforged_version=4044290
# Forge mod run
# 0 = Don't enable and don't run