From a29f8ac5cb9c3eca82dd2d261b0647e75e78ee65 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Wed, 22 May 2024 00:17:49 +0200 Subject: [PATCH] fix(inferium-harvester): display of the harvest state --- inferium-harvester.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inferium-harvester.lua b/inferium-harvester.lua index 124ca11..a734c8d 100644 --- a/inferium-harvester.lua +++ b/inferium-harvester.lua @@ -3,7 +3,7 @@ local utils = require('libs/utils') local turtleUtils = require('libs/turtle-utils') local config = require('config/harvesting') -local VERSION = "2.5.0" +local VERSION = "2.5.1" local INFERIUM_SERVER = 'inferium.com' local IDLE_TIME = 2 local WAIT_ITEM_IDLE_TIME = 5 @@ -230,21 +230,21 @@ local function forward() end local function harvestProcedure() - term.write('> harvest on ' .. tostring(config.length) .. ' blocks') + term.write('> harvest on ' .. tostring(config.length) .. ' blocks ') local nbHarvested = 0 for i=1, config.length, 1 do if harvestDown(i) then nbHarvested = nbHarvested + 1 - term.write(' .') + term.write('.') else - term.write(' !') + term.write('!') end if i ~= config.length then forward() end end - term.write('\n') + print() print('> ' .. tostring(nbHarvested) .. ' harvested crops')