Highlands compat (fixes #25)

This commit is contained in:
FalsePattern committed 2022-07-23 01:04:40 +02:00
1 parent 8e83ba76d4
commit 5bddcb0346
4 files changed
+26

No files matched your search

@@ -0,0 +1,19 @@
package com.falsepattern.endlessids.mixin.mixins.common.highlands;
import highlands.Config;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;
@Mixin(value = Config.class,
remap = false)
public abstract class ConfigMixin {
@ModifyArg(method = "addBiomeEntries",
at = @At(value = "INVOKE",
target = "Lnet/minecraftforge/common/config/Configuration;get(Ljava/lang/String;Ljava/lang/String;I)Lnet/minecraftforge/common/config/Property;"),
index = 2,
require = 44)
private static int shiftBiomeIDsUp(int id) {
return id + 16000;
}
}
@@ -130,6 +130,9 @@ public enum Mixin implements IMixin {
GalactiCraftConfigManagerCoreMixin(Side.COMMON, require(TargetedMod.GALACTICRAFTCORE),
"galacticraft.ConfigManagerCoreMixin"),
//endregion GalactiCraftCore->common
//region Highlands->common
HighlandsConfigMixin(Side.COMMON, require(TargetedMod.HIGHLANDS), "highlands.ConfigMixin"),
//endregion Highlands->common
//region ICG->common
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, require(TargetedMod.ICG), "icg.MysteriumPatchesFixesCaveMixin"),
//endregion ICG->common
@@ -26,6 +26,7 @@ public enum TargetedMod implements ITargetedMod {
EXTRAUTILITIES("Extra Utilities", true, startsWith("extrautilities-")),
FUTUREPACK("Futurepack", true, startsWith("[1.7.10]futurepack").or(startsWith("futurepack-"))),
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
HIGHLANDS("Highlands", true, startsWith("highlands")),
ICG("Immersive Cavegen", true, startsWith("immersivecavegen")),
LOTR("LOTR Mod", false, startsWith("lotrmod")),
MFQM("More Fun Quicksand Mod", true, startsWith("morefunquicksandmod-")),