mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01:00
Bug fix of the "Pusher push_item bug fix"
This commit is contained in:
parent
0eefb2a11b
commit
827cc084fd
@ -62,12 +62,11 @@ 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)
|
||||
if ndir then
|
||||
npos, ndir = remote_node(npos, ndir)
|
||||
end
|
||||
return npos, dir-1
|
||||
end
|
||||
return npos, facedir
|
||||
|
Loading…
Reference in New Issue
Block a user