diff --git a/itemcontroller.lua b/itemcontroller.lua index e493a22..22c98a0 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -3,10 +3,10 @@ local CACHE_FILE = "/.storage.cache" local LOCK_FILE = "/.storage.lock" local LOG_FILE_PATH = "latest.log" local Logger = Logging.firstLoad( - Logging.LogLevel.DEBUG, + Logging.LogLevel.TRACE, Logging.OUTPUTS.combine( - Logging.OUTPUTS.file(LOG_FILE_PATH), - Logging.OUTPUTS.stdout + Logging.OUTPUTS.file(LOG_FILE_PATH) + --Logging.OUTPUTS.stdout ) ) @@ -1009,7 +1009,10 @@ local PAGES = { local accessNode = Chest:fromPeripheral("minecraft:trapped_chest", true) ---@diagnostic disable-next-line: need-check-nil local controller = loadState(CACHE_FILE, accessNode:getInventory()) -local monitor = peripheral.find("monitor") + +local nTerm = term.native() +local nTermW, nTermH = nTerm.getSize() +local monitor = window.create(nTerm, 1, 1, nTermW, nTermH, true) --peripheral.find("monitor") local width, height = monitor.getSize() local CONTROLLER_STATE = {