Fix pusher bug
This commit is contained in:
parent
79cf2ba7af
commit
d3126bff70
@ -133,13 +133,10 @@ local function pushing(pos, crd, meta, nvm)
|
||||
if nvm.item_count <= 0 then
|
||||
crd.State:stop(pos, nvm)
|
||||
nvm.item_count = nil
|
||||
else
|
||||
end
|
||||
end
|
||||
crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS)
|
||||
end
|
||||
end
|
||||
else
|
||||
crd.State:stop(pos, nvm)
|
||||
end
|
||||
elseif nvm.num_items < nvm.limit then
|
||||
local num = math.min(crd.num_items, nvm.limit - nvm.num_items)
|
||||
num = push(pos, crd, meta, nvm, pull_dir, push_dir, num)
|
||||
|
Loading…
Reference in New Issue
Block a user