mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 07:35:06 +00:00
config fixes
This commit is contained in:
5 files changed
+21
-77
No files matched your search
@@ -3,9 +3,18 @@ package com.falsepattern.endlessids.config;
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.lib.config.Config;
|
||||
import com.falsepattern.lib.config.ConfigException;
|
||||
import com.falsepattern.lib.config.ConfigurationManager;
|
||||
|
||||
@Config(modid = Tags.MODID, category = "DarkWorld")
|
||||
@Config(modid = Tags.MODID, category = "darkworld")
|
||||
public class DarkWorldIDConfig {
|
||||
static {
|
||||
try {
|
||||
ConfigurationManager.registerConfig(DarkWorldIDConfig.class);
|
||||
} catch (ConfigException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
@Config.Comment("Original: 100")
|
||||
@Config.RangeInt(min = 40, max = ExtendedConstants.biomeIDCount - 1)
|
||||
@Config.DefaultInt(10100)
|
||||
|
||||
@@ -3,9 +3,18 @@ package com.falsepattern.endlessids.config;
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.lib.config.Config;
|
||||
import com.falsepattern.lib.config.ConfigException;
|
||||
import com.falsepattern.lib.config.ConfigurationManager;
|
||||
|
||||
@Config(modid = Tags.MODID, category = "futurepack")
|
||||
public class FuturepackIDConfig {
|
||||
static {
|
||||
try {
|
||||
ConfigurationManager.registerConfig(FuturepackIDConfig.class);
|
||||
} catch (ConfigException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
@Config.Comment("Original: 97")
|
||||
@Config.RangeInt(min = 40, max = ExtendedConstants.biomeIDCount - 1)
|
||||
@Config.DefaultInt(11097)
|
||||
|
||||
@@ -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