feat(inferium-harvester): add 3s delay at start
This commit is contained in:
parent
50cecdee4d
commit
83a819c038
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user