fix: miner.finished condition

This commit is contained in:
Guillaume ARM 2024-05-08 22:29:52 +02:00
parent 86caa737e9
commit 4cfee8d445

View File

@ -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