0
0
Fork 0

Fix crash when activating TNT

This commit is contained in:
Wuzzy 2017-03-04 23:25:02 +01:00
parent 33c92b553b
commit d8209e6d14
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ local function spawn_tnt(pos, entname)
minetest.sound_play("tnt_ignite", {pos = pos,gain = 1.0,max_hear_distance = 15,}) minetest.sound_play("tnt_ignite", {pos = pos,gain = 1.0,max_hear_distance = 15,})
local tnt = minetest.add_entity(pos, entname) local tnt = minetest.add_entity(pos, entname)
tnt:set_armor_groups({immortal=1}) tnt:set_armor_groups({immortal=1})
return tnt
end end
local function activate_if_tnt(nname, np, tnt_np, tntr) local function activate_if_tnt(nname, np, tnt_np, tntr)