1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-01-12 02:50:37 +01:00

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

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