diff --git a/miner.lua b/miner.lua index 8aab577..b89033e 100644 --- a/miner.lua +++ b/miner.lua @@ -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