Copy pos before giving it to on_blast because it can modify it; also remove a debug...
authorNovatux <nathanael.courant@laposte.net>
Tue, 12 May 2015 19:03:02 +0000 (21:03 +0200)
committerNovatux <nathanael.courant@laposte.net>
Tue, 12 May 2015 19:03:02 +0000 (21:03 +0200)
mods/tnt/init.lua

index 44a6be407ed31b9d829d4caec6b4d7108727fd8b..1554bf2381df845fe33f6c051330074f4023f43c 100644 (file)
@@ -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)