From 019d4024132cd38502e01d3d132326b46b99d699 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuster Date: Sun, 10 Nov 2024 21:43:11 +0100 Subject: [PATCH] Explicit GTNH check for gold cast removal config (#134) --- src/main/java/tconstruct/util/config/PHConstruct.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/util/config/PHConstruct.java b/src/main/java/tconstruct/util/config/PHConstruct.java index 8cd9712d..819e6273 100644 --- a/src/main/java/tconstruct/util/config/PHConstruct.java +++ b/src/main/java/tconstruct/util/config/PHConstruct.java @@ -9,6 +9,7 @@ import net.minecraftforge.common.config.Property; import com.google.common.collect.Sets; +import cpw.mods.fml.common.Loader; import tconstruct.TConstruct; import tconstruct.library.tools.AbilityHelper; @@ -58,7 +59,11 @@ public class PHConstruct { vanillaMetalBlocks = config.get("Difficulty Changes", "Craft vanilla metal blocks", true).getBoolean(true); lavaFortuneInteraction = config.get("Difficulty Changes", "Enable Auto-Smelt and Fortune interaction", true) .getBoolean(true); - removeGoldCastRecipes = config.get("Difficulty Changes", "Remove Gold Cast Recipes", false).getBoolean(false); + + boolean removeGoldCastsDefault = Loader.isModLoaded("dreamcraft"); + removeGoldCastRecipes = config.get("Difficulty Changes", "Remove Gold Cast Recipes", removeGoldCastsDefault) + .getBoolean(removeGoldCastsDefault); + removeVanillaToolRecipes = config.get("Difficulty Changes", "Remove Vanilla Tool Recipes", false) .getBoolean(false); labotimizeVanillaTools = config.get("Difficulty Changes", "Remove Vanilla Tool Effectiveness", false)