Skip to content

Commit 3180bdf

Browse files
committedJul 13, 2014
Add protection to TNT (by @tenplus1)
1 parent c993e14 commit 3180bdf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎mods/tnt/init.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ local add_drop = function(drops, pos, item)
3737
end
3838
end
3939

40-
local destroy = function(drops, pos, last, fast)
40+
local function destroy(drops, pos, last, fast)
41+
if minetest.is_protected(pos, "") then
42+
return
43+
end
44+
4145
local nodename = minetest.get_node(pos).name
4246
if nodename ~= "air" then
4347
minetest.remove_node(pos, (fast and 1 or 0))

1 commit comments

Comments
 (1)

tenplus1 commented on Jul 13, 2014

@tenplus1
Contributor

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.