From 415960933029574fe9db2cc3c9471e3e3d6cdb67 Mon Sep 17 00:00:00 2001 From: Buduf Date: Sun, 3 Jul 2022 16:13:38 +0200 Subject: [PATCH] bures-monitor v2 --- bures-monitor.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bures-monitor.lua b/bures-monitor.lua index 6dee106..7120c26 100644 --- a/bures-monitor.lua +++ b/bures-monitor.lua @@ -30,11 +30,14 @@ local function printBuRes() for name, list in pairs(buRes) do term.setTextColor(colors.black) term.setBackgroundColor(colors.white) + term.clearLine() print(name) term.setTextColor(colors.white) term.setBackgroundColor(colors.black) for key, value in pairs(list) do - print(value.item.displayName, value.available .. "+" .. value.delivering .. "/" .. value.item.count) + if value.status == "NEED_MORE" then + print(value.item.displayName, value.available .. "+" .. value.delivering .. "/" .. value.item.count) + end end end end