From d8a08528b9511409f553f1d40700c557d87e9ecd Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 15 Mar 2026 22:11:28 -0400 Subject: [PATCH] Enhance monitor setup to support networked monitors and fallback for modem detection --- inventoryManager.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inventoryManager.lua b/inventoryManager.lua index 5c026a3..09a5ef9 100644 --- a/inventoryManager.lua +++ b/inventoryManager.lua @@ -131,6 +131,17 @@ local mon = nil local function setupMonitor() mon = peripheral.wrap(MONITOR_SIDE) + -- If the side has a modem instead of a direct monitor, find it by type + if mon and not mon.setTextScale then + mon = nil + end + if not mon then + -- Search for a monitor on the network + local name = peripheral.find("monitor") + if name then + mon = name + end + end if not mon then return false end mon.setTextScale(0.5) mon.clear()