Skip to content
Snippets Groups Projects
Commit aaa6c260 authored by Novatux's avatar Novatux
Browse files

Copy pos before giving it to on_blast because it can modify it; also remove a...

Copy pos before giving it to on_blast because it can modify it; also remove a debug print that had nothing to do here
parent 81259e9f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment