Made controller Recipe use microexpansion.iron_ingot_ingredient variable

This commit is contained in:
James David Clarke 2023-12-27 14:26:08 +00:00
parent c468c502b5
commit 44cac65f40
No known key found for this signature in database
GPG Key ID: 9F5ECFD0E20F1C4C

@ -5,27 +5,15 @@ 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 = {
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"},
{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},
},
}
}
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
}
-- [register node] Controller
me.register_node("ctrl", {