config fixes

This commit is contained in:
FalsePattern committed 2022-07-24 00:41:12 +02:00
1 parent 69d09fc70f
commit 5d3bb1bc77
5 files changed
+21 -77

No files matched your search

@@ -23,14 +23,13 @@ public enum TargetedMod implements ITargetedMod {
BIOMETWEAKER("Biome Tweaker", true, startsWith("biometweaker-")),
BIOMEWAND("Biome Wand", true, startsWith("1.7.10-biome-wand-").or(startsWith("biome-wand"))),
COFHLIB("CoFH Lib", true, startsWith("cofhlib-")),
DARKWORLD("Dark World", true, startsWith("darkworld-").and(loadConfig(DarkWorldIDConfig.class))),
DARKWORLD("Dark World", true, startsWith("darkworld-")),
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
EB("Enhanced Biomes", true, startsWith("Enhanced Biomes").or(startsWith("enhancedbiomes"))),
EREBUS("The Erebus", true, startsWith("theerebus")),
EXTRAPLANETS("Extra Planets", false, startsWith("extraplanets-")),
EXTRAUTILITIES("Extra Utilities", true, startsWith("extrautilities-")),
FUTUREPACK("Futurepack", true, startsWith("[1.7.10]futurepack").or(startsWith("futurepack-")).and(loadConfig(
FuturepackIDConfig.class))),
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")),
@@ -46,17 +45,6 @@ public enum TargetedMod implements ITargetedMod {
WORLDEDIT("WorldEdit", false, startsWith("worldedit-")),
;
private static Predicate<String> loadConfig(Class<?> configClass) {
return (str) -> {
try {
ConfigurationManager.registerConfig(configClass);
} catch (ConfigException e) {
e.printStackTrace();
}
return true;
};
}
@Getter
private final String modName;
@Getter