From e5e63f422331f31083e66b80a1f69d59b63931bd Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Mon, 20 May 2024 00:07:06 +0200 Subject: [PATCH] fix(inferium-harvester): wait for bottom inventory before dropping items --- inferium-harvester.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inferium-harvester.lua b/inferium-harvester.lua index ef09cbe..3c80780 100644 --- a/inferium-harvester.lua +++ b/inferium-harvester.lua @@ -1,7 +1,7 @@ local turtleUtils = require('libs/turtle-utils') local config = require('config/harvesting') -local VERSION = "0.4.1" +local VERSION = "0.4.2" local IDLE_TIME = 2 local MIN_FUEL_NEEDED = (10 + config.firstCropZ + config.length) * 2 local MIN_FREE_SLOTS_BEFORE_COMPACT = 4 @@ -81,6 +81,8 @@ local function dropAllProcedure() local count = turtle.getItemCount(i) if count > 0 then + turtleUtils.waitForInventory('bottom', IDLE_TIME) + while not turtleUtils.dropSlot(i, turtle.dropDown) do os.sleep(IDLE_TIME) end