Fix concentrator blocking bug
This commit is contained in:
parent
6042a9d30a
commit
c81f62fd39
@ -72,7 +72,11 @@ end
|
|||||||
techage.register_node(names, {
|
techage.register_node(names, {
|
||||||
on_push_item = function(pos, in_dir, stack)
|
on_push_item = function(pos, in_dir, stack)
|
||||||
local push_dir = M(pos):get_int("push_dir")
|
local push_dir = M(pos):get_int("push_dir")
|
||||||
|
if networks.Flip[push_dir] ~= in_dir then
|
||||||
return techage.safe_push_items(pos, push_dir, stack)
|
return techage.safe_push_items(pos, push_dir, stack)
|
||||||
|
else
|
||||||
|
return stack
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
is_pusher = true, -- is a pulling/pushing node
|
is_pusher = true, -- is a pulling/pushing node
|
||||||
})
|
})
|
||||||
@ -121,7 +125,11 @@ end
|
|||||||
techage.register_node(names, {
|
techage.register_node(names, {
|
||||||
on_push_item = function(pos, in_dir, stack)
|
on_push_item = function(pos, in_dir, stack)
|
||||||
local push_dir = M(pos):get_int("push_dir")
|
local push_dir = M(pos):get_int("push_dir")
|
||||||
|
if networks.Flip[push_dir] ~= in_dir then
|
||||||
return techage.safe_push_items(pos, push_dir, stack)
|
return techage.safe_push_items(pos, push_dir, stack)
|
||||||
|
else
|
||||||
|
return stack
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
is_pusher = true, -- is a pulling/pushing node
|
is_pusher = true, -- is a pulling/pushing node
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user