From 77d94ce3a7694d758081123bb343fe1386381b8a Mon Sep 17 00:00:00 2001 From: boubou19 Date: Fri, 14 Aug 2026 14:08:07 +0200 Subject: [PATCH] make inductive furnace configurable (default true) --- .../mrtjp/projectred/core/Configurator.scala | 6 ++++ .../mrtjp/projectred/expansion/proxies.scala | 30 ++++++++++--------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/main/scala/mrtjp/projectred/core/Configurator.scala b/src/main/scala/mrtjp/projectred/core/Configurator.scala index af7cb0fd7..b52d483db 100644 --- a/src/main/scala/mrtjp/projectred/core/Configurator.scala +++ b/src/main/scala/mrtjp/projectred/core/Configurator.scala @@ -33,6 +33,7 @@ object Configurator extends ModConfig("ProjRed|Core") { var enchantment_fuel_efficiencty_id = 80 /** Machines * */ + var enableInductiveFurnace = true var enableDiamondBlockBreaker = false /** Rendering * */ @@ -150,6 +151,11 @@ object Configurator extends ModConfig("ProjRed|Core") { "Machine Settings", "Contains settings related to machines and devices." ) + enableInductiveFurnace = machines.put( + "Enable the Inductive Furnace", + enableInductiveFurnace, + "Allow the Inductive Furnace to be crafted and load its smelting recipes." + ) enableDiamondBlockBreaker = machines.put( "Enable the Diamond Block Breaker", enableDiamondBlockBreaker, diff --git a/src/main/scala/mrtjp/projectred/expansion/proxies.scala b/src/main/scala/mrtjp/projectred/expansion/proxies.scala index bfcbcefbb..8a43870c5 100644 --- a/src/main/scala/mrtjp/projectred/expansion/proxies.scala +++ b/src/main/scala/mrtjp/projectred/expansion/proxies.scala @@ -169,7 +169,7 @@ object ForwardClientTracker extends TClientKeyTracker { object ExpansionRecipes { def initRecipes() { - InductiveFurnaceRecipeLib.init() + if (Configurator.enableInductiveFurnace) InductiveFurnaceRecipeLib.init() initItemRecipes() initMachineRecipes() initDeviceRecipes() @@ -235,20 +235,22 @@ object ExpansionRecipes { private def initMachineRecipes() { // Inductive Furnace - GameRegistry.addRecipe( - new ShapedOreRecipe( - new ItemStack(machine1, 1, 0), - "bbb", - "b b", - "iei", - 'b': JC, - Blocks.brick_block, - 'i': JC, - "ingotIron", - 'e': JC, - "ingotElectrotineAlloy" + if (Configurator.enableInductiveFurnace) { + GameRegistry.addRecipe( + new ShapedOreRecipe( + new ItemStack(machine1, 1, 0), + "bbb", + "b b", + "iei", + 'b': JC, + Blocks.brick_block, + 'i': JC, + "ingotIron", + 'e': JC, + "ingotElectrotineAlloy" + ) ) - ) + } // Electrotine generator GameRegistry.addRecipe(