Skip to content
Permalink
Browse files
Add protection to TNT (by @tenplus1)
  • Loading branch information
BlockMen committed Jul 13, 2014
1 parent c993e14 commit 3180bdfe6ce40a6f155329078884e797c310b8f1
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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))

1 comment on commit 3180bdf

@tenplus1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks dude, I just realised you changed this after re-submitting both fixes for boats and tnt into the minetest_game area...

Please sign in to comment.