forked from mtcontrib/pipeworks
fix crash caused by deprecated usage of minetest.item_drop, fixes #122
This commit is contained in:
parent
17a83d0474
commit
352e23cfb1
@ -249,7 +249,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
|
|||||||
if not found_next then
|
if not found_next then
|
||||||
drop_pos = minetest.find_node_near(vector.add(self.start_pos, velocity), 1, "air")
|
drop_pos = minetest.find_node_near(vector.add(self.start_pos, velocity), 1, "air")
|
||||||
if drop_pos then
|
if drop_pos then
|
||||||
minetest.item_drop(stack, "", drop_pos)
|
minetest.item_drop(stack, nil, drop_pos)
|
||||||
self:remove()
|
self:remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user