Skip to content

Commit

Permalink
Copy pos before giving it to on_blast because it can modify it; also …
Browse files Browse the repository at this point in the history
…remove a debug print that had nothing to do here
  • Loading branch information
Ekdohibs committed May 12, 2015
1 parent 81259e9 commit aaa6c26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mods/tnt/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit aaa6c26

Please sign in to comment.