mirror of
https://github.com/joe7575/techpack.git
synced 2024-09-12 07:58:39 +02: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
|
dir = ((facedir + node.param2) % 4) + 1
|
||||||
end
|
end
|
||||||
local npos, ndir = tubelib.get_next_tube(pos, dir)
|
local npos, ndir = tubelib.get_next_tube(pos, dir)
|
||||||
if ndir == nil then
|
|
||||||
return pos, SideToFacedir[side]
|
|
||||||
end
|
|
||||||
local node = minetest.get_node(npos)
|
local node = minetest.get_node(npos)
|
||||||
if tubelib.TubeNames[node.name] then
|
if tubelib.TubeNames[node.name] then
|
||||||
|
if ndir then
|
||||||
npos, ndir = remote_node(npos, ndir)
|
npos, ndir = remote_node(npos, ndir)
|
||||||
|
end
|
||||||
return npos, dir-1
|
return npos, dir-1
|
||||||
end
|
end
|
||||||
return npos, facedir
|
return npos, facedir
|
||||||
|
Loading…
Reference in New Issue
Block a user