mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01:00
Pusher push_item bugfix
This commit is contained in:
parent
a01c14beff
commit
72f07275f2
@ -62,6 +62,9 @@ function tubelib.get_neighbor_pos(pos, side)
|
||||
dir = ((facedir + node.param2) % 4) + 1
|
||||
end
|
||||
local npos, ndir = tubelib.get_next_tube(pos, dir)
|
||||
if ndir == nil then
|
||||
return pos, SideToFacedir[side]
|
||||
end
|
||||
local node = minetest.get_node(npos)
|
||||
if tubelib.TubeNames[node.name] then
|
||||
npos, ndir = remote_node(npos, ndir)
|
||||
|
Loading…
Reference in New Issue
Block a user