From fe3271dcf11d88129dc42ed728eacbaba0f4919d Mon Sep 17 00:00:00 2001 From: KnightMiner Date: Thu, 8 Apr 2021 20:13:42 -0400 Subject: [PATCH] Fix tag list improperly defined in config (#152) Also added Create to our ore preferences list --- src/main/java/slimeknights/mantle/config/Config.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/slimeknights/mantle/config/Config.java b/src/main/java/slimeknights/mantle/config/Config.java index 08a73c8..5484d43 100644 --- a/src/main/java/slimeknights/mantle/config/Config.java +++ b/src/main/java/slimeknights/mantle/config/Config.java @@ -24,7 +24,8 @@ public class Config { public static final CachedBoolean EXTRA_HEART_RENDERER; /** List of preferences for tag outputs */ - public static final CachedValue> TAG_PREFERENCES; + private static final List DEFAULT_TAG_PREFERENCES = Arrays.asList("minecraft", "tconstruct", "tmechworks", "create", "immersiveengineering", "mekanism", "thermalfoundation", "thermalexpansion"); + public static final CachedValue> TAG_PREFERENCES; private static final ForgeConfigSpec.Builder CLIENT_BUILDER, SERVER_BUILDER; public static final ForgeConfigSpec CLIENT_SPEC, SERVER_SPEC; @@ -43,9 +44,9 @@ public class Config { // server options TAG_PREFERENCES = server(builder -> - builder.comment("Preferences for outputs from tags used in automatic compat in recipes") - .translation("config.mantle.tagPreferences") - .define("tagPreferences", Arrays.asList("minecraft", "tconstruct", "tmechworks", "immersiveengineering", "mekanism", "thermalfoundation", "thermalexpansion"))); + builder.comment("Preferences for outputs from tags used in automatic compat in recipes") + .translation("config.mantle.tagPreferences") + .defineList("tagPreferences", DEFAULT_TAG_PREFERENCES, str -> true)); CLIENT_SPEC = CLIENT_BUILDER.build(); SERVER_SPEC = SERVER_BUILDER.build();