Skip to content

Commit

Permalink
Add protection to TNT (by @tenplus1)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Jul 13, 2014
1 parent c993e14 commit 3180bdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods/tnt/init.lua
Expand Up @@ -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))
Expand Down

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.