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