From aaa6c260cdcdc13498b1ed18fa55a3765e3359bc Mon Sep 17 00:00:00 2001 From: Novatux Date: Tue, 12 May 2015 21:03:02 +0200 Subject: [PATCH] Copy pos before giving it to on_blast because it can modify it; also remove a debug print that had nothing to do here --- mods/tnt/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 44a6be40..1554bf23 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -81,11 +81,10 @@ local function destroy(drops, pos, cid) end local def = cid_data[cid] if def and def.on_blast then - def.on_blast(pos, 1) + def.on_blast(vector.new(pos), 1) return end if def and def.flammable then - print(dump(def), dump(pos), cid) minetest.set_node(pos, fire_node) else minetest.remove_node(pos) -- 2.25.1