Fix mesecon cooking recipes

This commit is contained in:
Jude Melton-Houghton 2022-05-09 19:09:07 -04:00 committed by sfan5
parent 960b7c4915
commit 27c3c515b4

@ -229,23 +229,31 @@ register_wires()
-- ############## -- ##############
-- ## Crafting ## -- ## Crafting ##
-- ############## -- ##############
minetest.register_craft({ -- (Resolve aliases to avoid bug with cooking/fuel recipes.)
type = "cooking",
output = "mesecons:wire_00000000_off 2",
recipe = "mesecons_gamecompat:mese_crystal_fragment",
cooktime = 3,
})
minetest.register_craft({ if minetest.registered_aliases["mesecons_gamecompat:mese_crystal_fragment"] then
type = "cooking", minetest.register_craft({
output = "mesecons:wire_00000000_off 18", type = "cooking",
recipe = "mesecons_gamecompat:mese_crystal", output = "mesecons:wire_00000000_off 2",
cooktime = 15, recipe = minetest.registered_aliases["mesecons_gamecompat:mese_crystal_fragment"],
}) cooktime = 3,
})
end
minetest.register_craft({ if minetest.registered_aliases["mesecons_gamecompat:mese_crystal"] then
type = "cooking", minetest.register_craft({
output = "mesecons:wire_00000000_off 162", type = "cooking",
recipe = "mesecons_gamecompat:mese", output = "mesecons:wire_00000000_off 18",
cooktime = 30, recipe = minetest.registered_aliases["mesecons_gamecompat:mese_crystal"],
}) cooktime = 15,
})
end
if minetest.registered_aliases["mesecons_gamecompat:mese"] then
minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 162",
recipe = minetest.registered_aliases["mesecons_gamecompat:mese"],
cooktime = 30,
})
end