mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 11:05:06 +00:00
config fixes
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user