some tweaks

This commit is contained in:
FalsePattern committed 2023-08-12 15:04:04 +02:00
1 parent 344b788108
commit 6b3d872fbd
7 files changed
+152 -13

No files matched your search

@@ -38,9 +38,32 @@ public class EndlessIDs {
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent e) {
LOG.info("Current configuration:");
logConfig(" Biome Extension", GeneralConfig.extendBiome);
logConfig(" Block/Item Extension", GeneralConfig.extendBlockItem);
if (GeneralConfig.extendBlockItem) {
logConfig(" Extra Item Bits", GeneralConfig.extraItemIDBits);
logConfig(" Extra Block Bits", GeneralConfig.extraBlockIDBits);
}
logConfig("DataWatcher Extension", GeneralConfig.extendDataWatcher);
logConfig("Enchantment Extension", GeneralConfig.extendEnchantment);
logConfig(" Potion Extension", GeneralConfig.extendPotion);
logConfig(" Redstone Extension", GeneralConfig.extendRedstone);
if (GeneralConfig.extendRedstone) {
logConfig(" Max redstone level", GeneralConfig.maxRedstone);
LOG.warn("(Redstone extension is an experimental and dangerous feature, and should NEVER be used in worlds that you worry about getting corrupted!)");
}
patchManager.preInit();
}
private static void logConfig(String name, boolean value) {
LOG.info(name + (value ? ": Enabled" : ": Disabled"));
}
private static void logConfig(String name, int value) {
LOG.info(name + ": " + value);
}
@Mod.EventHandler
public void init(FMLInitializationEvent e) {
patchManager.init();