From 83a819c038dd4608407c840ef2d3f507f4b9167f Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Sat, 25 May 2024 23:58:37 +0200 Subject: [PATCH] feat(inferium-harvester): add 3s delay at start --- inferium-harvester.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inferium-harvester.lua b/inferium-harvester.lua index 69b8c4a..b09f68e 100644 --- a/inferium-harvester.lua +++ b/inferium-harvester.lua @@ -3,7 +3,7 @@ local utils = require('libs/utils') local inferium = require('libs/inferium') local turtleUtils = require('libs/turtle-utils') -local VERSION = "4.0.1" +local VERSION = "4.1.0" local INFERIUM_SERVER = 'inferium.com' local IDLE_TIME = 2 local WAIT_ITEM_IDLE_TIME = 5 @@ -12,6 +12,7 @@ local MIN_INITIAL_FUEL_NEEDED = 16 local ADDITIONAL_FUEL_MARGIN = 100 local MAX_FERTILIZED_ESSENCE = 32 local MIN_FREE_SLOTS_BEFORE_COMPACT = 4 +local TIME_TO_START = 3 -- a table with the list of current crops local localPlan = nil @@ -544,6 +545,9 @@ local function main() error('Not enough fuel', 0) end + print('Starting harvester in ' .. TIME_TO_START .. ' seconds...') + os.sleep(TIME_TO_START) + retrieveHomePositionProcedure() local cycleNumber = 1