Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/scala/mrtjp/projectred/core/Configurator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object Configurator extends ModConfig("ProjRed|Core") {
var enchantment_fuel_efficiencty_id = 80

/** Machines * */
var enableInductiveFurnace = true
var enableDiamondBlockBreaker = false

/** Rendering * */
Expand Down Expand Up @@ -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,
Expand Down
30 changes: 16 additions & 14 deletions src/main/scala/mrtjp/projectred/expansion/proxies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ object ForwardClientTracker extends TClientKeyTracker {

object ExpansionRecipes {
def initRecipes() {
InductiveFurnaceRecipeLib.init()
if (Configurator.enableInductiveFurnace) InductiveFurnaceRecipeLib.init()
initItemRecipes()
initMachineRecipes()
initDeviceRecipes()
Expand Down Expand Up @@ -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(
Expand Down