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:
parent
17a83d0474
commit
352e23cfb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user