Bug fix of the "Pusher push_item bug fix"

This commit is contained in:
Joachim Stolberg 2018-07-05 19:07:15 +02:00
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
if ndir then
npos, ndir = remote_node(npos, ndir)
end
return npos, dir-1
end
return npos, facedir