mirror of
https://github.com/joe7575/techpack.git
synced 2025-02-18 10:43:46 +01:00
Bug fix of the "Pusher push_item bug fix"
This commit is contained in:
@ -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
|
||||||
npos, ndir = remote_node(npos, ndir)
|
if ndir then
|
||||||
|
npos, ndir = remote_node(npos, ndir)
|
||||||
|
end
|
||||||
return npos, dir-1
|
return npos, dir-1
|
||||||
end
|
end
|
||||||
return npos, facedir
|
return npos, facedir
|
||||||
|
Reference in New Issue
Block a user