Skip to content
Snippets Groups Projects
Commit 3180bdfe authored by BlockMen's avatar BlockMen
Browse files

Add protection to TNT (by @tenplus1)

parent c993e140
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,11 @@ local add_drop = function(drops, pos, item)
end
end
local destroy = function(drops, pos, last, fast)
local function destroy(drops, pos, last, fast)
if minetest.is_protected(pos, "") then
return
end
local nodename = minetest.get_node(pos).name
if nodename ~= "air" then
minetest.remove_node(pos, (fast and 1 or 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment