fix crash caused by deprecated usage of minetest.item_drop, fixes #122

This commit is contained in:
HybridDog 2015-11-17 09:09:07 +01:00 committed by Vanessa Ezekowitz
parent 17a83d0474
commit 352e23cfb1
1 changed files with 11 additions and 11 deletions

View File

@ -249,7 +249,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
if not found_next then
drop_pos = minetest.find_node_near(vector.add(self.start_pos, velocity), 1, "air")
if drop_pos then
minetest.item_drop(stack, "", drop_pos)
minetest.item_drop(stack, nil, drop_pos)
self:remove()
return
end