From 35cfb2e4c5c2b8640d8286c9565a89fc3828540b Mon Sep 17 00:00:00 2001 From: tchncs Date: Sat, 3 Sep 2016 11:04:56 +0200 Subject: [PATCH] tnt: do not check for tnt enabled for serving recipe --- mods/tnt/init.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 01758cd1..a9c86526 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -492,15 +492,14 @@ minetest.register_craft({ recipe = {"default:coal_lump", "default:gravel"} }) -if enable_tnt then - minetest.register_craft({ - output = "tnt:tnt", - recipe = { - {"", "group:wood", ""}, - {"group:wood", "tnt:gunpowder", "group:wood"}, - {"", "group:wood", ""} - } - }) +minetest.register_craft({ + output = "tnt:tnt", + recipe = { + {"", "group:wood", ""}, + {"group:wood", "tnt:gunpowder", "group:wood"}, + {"", "group:wood", ""} + } +}) minetest.register_abm({ label = "TNT ignition", @@ -510,7 +509,6 @@ if enable_tnt then chance = 1, action = tnt.burn, }) -end function tnt.register_tnt(def) local name