Skip to content

Commit 7cac67f

Browse files
authoredJun 28, 2020
TNT centre node adheres to protection
Make sure tnt.boom() doesnt replace centre node when explode_centre is true and ignore_protection is false. Fixes: #2663
1 parent 0648252 commit 7cac67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎mods/tnt/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ function tnt.boom(pos, def)
408408
def.damage_radius = def.damage_radius or def.radius * 2
409409
local meta = minetest.get_meta(pos)
410410
local owner = meta:get_string("owner")
411-
if not def.explode_center then
411+
if not def.explode_center and def.ignore_protection ~= true then
412412
minetest.set_node(pos, {name = "tnt:boom"})
413413
end
414414
local sound = def.sound or "tnt_explode"

0 commit comments

Comments
 (0)
Please sign in to comment.