From d7cbf76a0a32305402f1ae967d1e6760312de01d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 28 Jun 2020 14:50:46 +0100 Subject: [PATCH] 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: https://github.com/minetest/minetest_game/issues/2663 --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fbb49c7..ae28191 100644 --- a/init.lua +++ b/init.lua @@ -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"