Copy pos before giving it to on_blast because it can modify it; also remove a debug print that had nothing to do here

This commit is contained in:
Novatux 2015-05-12 21:03:02 +02:00
parent 81259e9fcc
commit aaa6c260cd

View File

@ -81,11 +81,10 @@ local function destroy(drops, pos, cid)
end end
local def = cid_data[cid] local def = cid_data[cid]
if def and def.on_blast then if def and def.on_blast then
def.on_blast(pos, 1) def.on_blast(vector.new(pos), 1)
return return
end end
if def and def.flammable then if def and def.flammable then
print(dump(def), dump(pos), cid)
minetest.set_node(pos, fire_node) minetest.set_node(pos, fire_node)
else else
minetest.remove_node(pos) minetest.remove_node(pos)