From 93a31994b775b576f3b0422b76ef09c30d6890ae Mon Sep 17 00:00:00 2001 From: kepler155c Date: Thu, 1 Nov 2018 15:28:43 -0400 Subject: [PATCH] scanning miner tweaks --- apps/scanningMiner.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/scanningMiner.lua b/apps/scanningMiner.lua index 76d6cac..7d94413 100644 --- a/apps/scanningMiner.lua +++ b/apps/scanningMiner.lua @@ -413,10 +413,13 @@ local function scan() s, m = turtle.digAt(b) end if not s then - page.statusBar:setValue('status', m) + page.statusBar:setValue('status', b.name .. ' ' .. m) page.statusBar:draw() page:sync() - os.sleep(3) + if debug and type(debug) == 'function' then + debug(b.name .. ' ' .. m) + end +-- os.sleep(3) else page.statusBar:setValue('mining', m) end @@ -452,7 +455,10 @@ local function mineChunk() if turtle.isAborted() then error('aborted') end - status('scanning ' .. pt.y + mining.home.y - 8 .. '-' .. pt.y + mining.home.y + 8) + status('scanning %d %d-%d', + mining.chunkIndex, + pt.y + mining.home.y - 8, + pt.y + mining.home.y + 8) turtle.select(1) safeGoto(pt.x, pt.z, pt.y)