From d8209e6d147d446f4e3b878b48f728a8fb514bda Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 4 Mar 2017 23:25:02 +0100 Subject: [PATCH] Fix crash when activating TNT --- mods/ITEMS/mcl_tnt/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_tnt/init.lua b/mods/ITEMS/mcl_tnt/init.lua index 3762d64a0a..d6bcf419ec 100644 --- a/mods/ITEMS/mcl_tnt/init.lua +++ b/mods/ITEMS/mcl_tnt/init.lua @@ -2,6 +2,7 @@ local function spawn_tnt(pos, entname) minetest.sound_play("tnt_ignite", {pos = pos,gain = 1.0,max_hear_distance = 15,}) local tnt = minetest.add_entity(pos, entname) tnt:set_armor_groups({immortal=1}) + return tnt end local function activate_if_tnt(nname, np, tnt_np, tntr)