From: Novatux Date: Tue, 12 May 2015 19:03:02 +0000 (+0200) Subject: Copy pos before giving it to on_blast because it can modify it; also remove a debug... X-Git-Tag: 0.4.13~73 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aaa6c260cdcdc13498b1ed18fa55a3765e3359bc;p=oweals%2Fminetest_game.git Copy pos before giving it to on_blast because it can modify it; also remove a debug print that had nothing to do here --- 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)