From fce52b2ffeaeb7b327c27e80c33df0f2b5da0e71 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 15 Aug 2022 21:47:43 +0200 Subject: [PATCH] Fix 'radius' argument of rp_tnt being ignored --- mods/rp_tnt/init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/rp_tnt/init.lua b/mods/rp_tnt/init.lua index 537ea8b..8930674 100644 --- a/mods/rp_tnt/init.lua +++ b/mods/rp_tnt/init.lua @@ -322,20 +322,20 @@ local function rawboom(pos, radius, sound, remove_nodes, is_tnt) end end if remove_nodes then - local drops = tnt.explode(pos, tnt_radius, sound) + local drops = tnt.explode(pos, radius, sound) play_tnt_sound(pos, sound) if is_tnt then minetest.log("action", "[rp_tnt] TNT exploded at "..minetest.pos_to_string(pos, 0)) else minetest.log("action", "[rp_tnt] Explosion at "..minetest.pos_to_string(pos, 0)) end - entity_physics(pos, tnt_radius) - eject_drops(drops, pos, tnt_radius) + entity_physics(pos, radius) + eject_drops(drops, pos, radius) else - entity_physics(pos, tnt_radius) + entity_physics(pos, radius) play_tnt_sound(pos, sound) end - add_explosion_effects(pos, tnt_radius) + add_explosion_effects(pos, radius) end