Skip to content

Commit aaa6c26

Browse files
committedMay 12, 2015
Copy pos before giving it to on_blast because it can modify it; also remove a debug print that had nothing to do here
1 parent 81259e9 commit aaa6c26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

Diff for: ‎mods/tnt/init.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ local function destroy(drops, pos, cid)
8181
end
8282
local def = cid_data[cid]
8383
if def and def.on_blast then
84-
def.on_blast(pos, 1)
84+
def.on_blast(vector.new(pos), 1)
8585
return
8686
end
8787
if def and def.flammable then
88-
print(dump(def), dump(pos), cid)
8988
minetest.set_node(pos, fire_node)
9089
else
9190
minetest.remove_node(pos)

0 commit comments

Comments
 (0)
Please sign in to comment.