From d3126bff70ebe0d3ab0ba51a018f17767b597902 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 14 Sep 2022 18:24:49 +0200 Subject: [PATCH] Fix pusher bug --- basic_machines/pusher.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/basic_machines/pusher.lua b/basic_machines/pusher.lua index dd54148..e0baf9e 100644 --- a/basic_machines/pusher.lua +++ b/basic_machines/pusher.lua @@ -133,12 +133,9 @@ local function pushing(pos, crd, meta, nvm) if nvm.item_count <= 0 then crd.State:stop(pos, nvm) nvm.item_count = nil - else - crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS) end end - else - crd.State:stop(pos, nvm) + crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS) end elseif nvm.num_items < nvm.limit then local num = math.min(crd.num_items, nvm.limit - nvm.num_items)