Skip to content
Snippets Groups Projects
Commit 35cfb2e4 authored by Milan's avatar Milan
Browse files

tnt: do not check for tnt enabled for serving recipe

parent 56534d51
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment