Skip to content
Browse files

Add protection to TNT (by @tenplus1)

  • Loading branch information
BlockMen committed Jul 13, 2014
1 parent c993e14 commit 3180bdfe6ce40a6f155329078884e797c310b8f1
Showing with 5 additions and 1 deletion.
  1. +5 −1 mods/tnt/init.lua
@@ -37,7 +37,11 @@ local add_drop = function(drops, pos, item)

local destroy = function(drops, pos, last, fast)
local function destroy(drops, pos, last, fast)
if minetest.is_protected(pos, "") then

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


This comment has been minimized.

Copy link

@tenplus1 tenplus1 commented on 3180bdf Jul 13, 2014

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.
You can’t perform that action at this time.