From 4cfee8d4452089399dd8358367234d79c08fc452 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Wed, 8 May 2024 22:29:52 +0200 Subject: [PATCH] fix: miner.finished condition --- miner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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