From 02b78070138b3215b1f595474d02d720c9faf0bc Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 12 May 2017 20:28:46 -0600 Subject: [PATCH] update simplecrafting_lib name --- depends.txt | 2 +- init.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/depends.txt b/depends.txt index f4a65a2..f81b104 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,3 @@ default -crafting_lib? +simplecrafting_lib? intllib? diff --git a/init.lua b/init.lua index 6650dc8..37b2fbf 100644 --- a/init.lua +++ b/init.lua @@ -54,14 +54,14 @@ for i, metal in pairs(metals_list) do table.insert(recipe_list, "real_minerals:"..input.."_ingot") end - if minetest.get_modpath("crafting_lib") then + if minetest.get_modpath("simplecrafting_lib") then local input = {} for _, item in pairs(metal.recipe) do input["real_minerals:"..item.."_ingot"] = (input["real_minerals:"..item.."_ingot"] or 0) + 1 end - crafting_lib.register("smelter", { + simplecrafting_lib.register("smelter", { input = input, output = {["real_minerals:"..metal.name.."_ingot"] = quantity}, cooktime = 3.0, @@ -238,8 +238,8 @@ local function register_ore(name, OreDef) }) if OreDef.product then - if minetest.get_modpath("crafting_lib") then - crafting_lib.register("smelter", { + if minetest.get_modpath("simplecrafting_lib") then + simplecrafting_lib.register("smelter", { input = {["real_minerals:"..name] = 1}, output = {["real_minerals:"..OreDef.product.."_ingot"] = 1}, cooktime = 5,