Immersive Cavegen compat

This commit is contained in:
FalsePattern committed 2022-07-03 23:18:52 +02:00
1 parent 3c53ecf624
commit f28d5fbc3e
5 files changed
+26

No files matched your search

@@ -0,0 +1,19 @@
package com.falsepattern.endlessids.mixin.mixins.common.icg;
import com.falsepattern.endlessids.constants.ExtendedConstants;
import com.falsepattern.endlessids.constants.VanillaConstants;
import net.tclproject.mysteriumlib.asm.fixes.MysteriumPatchesFixesCave;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
@Mixin(value = MysteriumPatchesFixesCave.class,
remap = false)
public abstract class MysteriumPatchesFixesCaveMixin {
@ModifyConstant(method = "<clinit>",
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
require = 1)
private static int extendIDs(int constant) {
return ExtendedConstants.biomeIDCount;
}
}
@@ -89,6 +89,10 @@ public enum Mixin implements IMixin {
GalactiCraftCoreConfigManagerCoreMixin(Side.COMMON, require(TargetedMod.GALACTICRAFTCORE),
"galacticraft.ConfigManagerCoreMixin"),
//endregion GalactiCraftCore->common
//region ICG->common
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, require(TargetedMod.ICG),
"icg.MysteriumPatchesFixesCaveMixin"),
//endregion ICG->common
//region MFQM->common
MFQMMixin(Side.COMMON, require(TargetedMod.MFQM), "mfqm.MFQMMixin"),
MFQMDataWatcherMixin(Side.COMMON, require(TargetedMod.MFQM).and(condition(() -> IEConfig.extendDataWatcher)),
@@ -17,6 +17,7 @@ public enum TargetedMod implements ITargetedMod {
COFHLIB("CoFH Lib", true, startsWith("cofhlib-")),
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
ICG("Immersive Cavegen", true, startsWith("immersivecavegen")),
MFQM("More Fun Quicksand Mod", false, startsWith("morefunquicksandmod-")),
NATURESCOMPASS("Nature's Compass", true, startsWith("naturescompass")),
RTG("Realistic Terrain Generation", true, startsWith("rtg-")),