From 626a195bb438b684d9bdc9da12c5da7762cf78d4 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Fri, 24 May 2024 19:05:44 +0200 Subject: [PATCH] fix(inferium-harvester): dropAllProcedure --- inferium-harvester.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inferium-harvester.lua b/inferium-harvester.lua index 01adebc..69b8c4a 100644 --- a/inferium-harvester.lua +++ b/inferium-harvester.lua @@ -151,7 +151,7 @@ local function dropAllProcedure(_) if count > 0 then turtleUtils.waitForInventory('bottom', IDLE_TIME) - while not turtleUtils.dropSlot(i, turtle.dropDown) do + while turtle.getItemCount(i) and not turtleUtils.dropSlot(i, turtle.dropDown) do os.sleep(IDLE_TIME) end end