fix: miner.finished condition
This commit is contained in:
parent
86caa737e9
commit
4cfee8d445
@ -106,7 +106,7 @@ local function refuelProcedure()
|
||||
end
|
||||
|
||||
local function returnMineProcedure()
|
||||
if miner.robot.finished then
|
||||
if miner.finished then
|
||||
miner.mission = nil -- it will stop the loop
|
||||
return
|
||||
end
|
||||
@ -184,7 +184,7 @@ local function mineProcedure()
|
||||
end
|
||||
|
||||
if turtleUtils.countFreeSlots() < 1 then
|
||||
print('> Starting return home procedure because inventory is empty...')
|
||||
print('> Starting return home procedure because inventory is almost full...')
|
||||
miner.mission = 'return-home'
|
||||
miner.lastPositionState = miner.robot.getState()
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user