diff --git a/.luacheckrc b/.luacheckrc index ce5554b..b317235 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,6 +1,6 @@ globals = { - "minetest", + "core", "minetest", } read_globals = { diff --git a/crafts.lua b/crafts.lua index 0883fe6..bcbda2e 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1,4 +1,5 @@ local steel_item = xcompat.materials.steel_ingot +local recycle = core.get_modpath("technic") and "technic:wrought_iron_dust" or xcompat.materials.iron_lump minetest.register_craft({ type = "cooking", @@ -75,7 +76,7 @@ if minetest.get_modpath("default") then }) minetest.register_craft({ - output = "default:iron_lump", + output = recycle, recipe = {{"steel:scrap", "steel:scrap"}} }) end @@ -89,4 +90,4 @@ if not minetest.get_modpath("streets") or not minetest.get_modpath("steelsupport {"", steel_item, ""}, } }) -end \ No newline at end of file +end