From 5c90c404d202755d5bc77e6b1eab5db76d579d7d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 4 Jan 2017 04:47:36 +0100 Subject: [PATCH] Fix torch craft --- mods/default/crafting.lua | 24 +----------------------- mods/torches/crafting.lua | 21 +++++++++++++++++++++ mods/torches/init.lua | 2 ++ 3 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 mods/torches/crafting.lua diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index 6e9d34040..b2a6bcc5b 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -74,22 +74,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - output = 'torches:torch 4', - recipe = { - {'default:coal_lump'}, - {'default:stick'}, - } -}) - -minetest.register_craft({ - output = 'torches:torch 4', - recipe = { - {'default:charcoal_lump'}, - {'default:stick'}, - } -}) - minetest.register_craft({ output = 'default:pick_wood', recipe = { @@ -736,12 +720,6 @@ minetest.register_craft({ burntime = 60, }) -minetest.register_craft({ - type = "fuel", - recipe = "torches:torch", - burntime = 4, -}) - minetest.register_craft({ type = "fuel", recipe = "signs:sign_wall", @@ -809,4 +787,4 @@ minetest.register_craft({ minetest.register_craft({ output = "default:string", recipe = {{"default:paper", "default:paper"}}, -}) \ No newline at end of file +}) diff --git a/mods/torches/crafting.lua b/mods/torches/crafting.lua new file mode 100644 index 000000000..28d7bbdb3 --- /dev/null +++ b/mods/torches/crafting.lua @@ -0,0 +1,21 @@ +minetest.register_craft({ + type = "fuel", + recipe = "torches:torch", + burntime = 4, +}) + +minetest.register_craft({ + output = 'torches:torch 4', + recipe = { + {'default:coal_lump'}, + {'default:stick'}, + } +}) + +minetest.register_craft({ + output = 'torches:torch 4', + recipe = { + {'default:charcoal_lump'}, + {'default:stick'}, + } +}) diff --git a/mods/torches/init.lua b/mods/torches/init.lua index c30e30897..0f2210c67 100644 --- a/mods/torches/init.lua +++ b/mods/torches/init.lua @@ -223,3 +223,5 @@ minetest.register_on_dignode(function(pos, oldnode, digger) end end end) + +dofile(minetest.get_modpath("torches") .. "/crafting.lua")