Skip to content

Commit

Permalink
TNT centre node adheres to protection
Browse files Browse the repository at this point in the history
Make sure tnt.boom() doesnt replace centre node when explode_centre is true and ignore_protection is false.

Fixes: #2663
  • Loading branch information
tenplus1 committed Jun 28, 2020
1 parent 0648252 commit 7cac67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/tnt/init.lua
Expand Up @@ -408,7 +408,7 @@ function tnt.boom(pos, def)
def.damage_radius = def.damage_radius or def.radius * 2
local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
if not def.explode_center then
if not def.explode_center and def.ignore_protection ~= true then
minetest.set_node(pos, {name = "tnt:boom"})
end
local sound = def.sound or "tnt_explode"
Expand Down

0 comments on commit 7cac67f

Please sign in to comment.