From 44cac65f40cbc6245b6c2c3631344a8d6ee13764 Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Wed, 27 Dec 2023 14:26:08 +0000 Subject: [PATCH] Made controller Recipe use microexpansion.iron_ingot_ingredient variable --- modules/network/ctrl.lua | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/modules/network/ctrl.lua b/modules/network/ctrl.lua index cb3c123..57a42f6 100644 --- a/modules/network/ctrl.lua +++ b/modules/network/ctrl.lua @@ -5,28 +5,16 @@ local network = me.network local access_level = microexpansion.constants.security.access_levels local ctrl_recipe = nil -if minetest.get_modpath("mcl_core") then - ctrl_recipe = { - { 1, { - {"mcl_core:iron_ingot", "microexpansion:steel_infused_obsidian_ingot", "mcl_core:iron_ingot"}, - {"mcl_core:iron_ingot", "microexpansion:machine_casing", "mcl_core:iron_ingot"}, - {"mcl_core:iron_ingot", "microexpansion:cable", "mcl_core:iron_ingot"}, - }, - } - } - - -else - ctrl_recipe = { - { 1, { - {"default:steel_ingot", "microexpansion:steel_infused_obsidian_ingot", "default:steel_ingot"}, - {"default:steel_ingot", "microexpansion:machine_casing", "default:steel_ingot"}, - {"default:steel_ingot", "microexpansion:cable", "default:steel_ingot"}, - }, - } - } -end +ctrl_recipe = { + { 1, { + {microexpansion.iron_ingot_ingredient, "microexpansion:steel_infused_obsidian_ingot", microexpansion.iron_ingot_ingredient}, + {microexpansion.iron_ingot_ingredient, "microexpansion:machine_casing", microexpansion.iron_ingot_ingredient}, + {microexpansion.iron_ingot_ingredient, "microexpansion:cable", microexpansion.iron_ingot_ingredient}, + }, + } +} + -- [register node] Controller me.register_node("ctrl", { description = "ME Controller",