mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 18:30:23 +01:00
Try to fix items dropping in unloaded areas
This commit is contained in:
parent
8e642df6a2
commit
bedcf4d646
@ -55,6 +55,7 @@ local function go_next(pos, velocity, stack)
|
|||||||
end
|
end
|
||||||
for _, vect in ipairs(can_go) do
|
for _, vect in ipairs(can_go) do
|
||||||
local npos = vector.add(pos, vect)
|
local npos = vector.add(pos, vect)
|
||||||
|
minetest.load_position(npos)
|
||||||
local node = minetest.get_node(npos)
|
local node = minetest.get_node(npos)
|
||||||
local reg_node = minetest.registered_nodes[node.name]
|
local reg_node = minetest.registered_nodes[node.name]
|
||||||
if reg_node then
|
if reg_node then
|
||||||
|
Loading…
Reference in New Issue
Block a user