From 84632a101c9123b6c9aa6f514e6f0d33e6de2158 Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Thu, 25 Jun 2026 14:48:07 -0500 Subject: [PATCH] fix identifyMonitor? pt 2 --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 87f4d8e..4a39af2 100644 --- a/main.lua +++ b/main.lua @@ -70,10 +70,10 @@ local function identifyMonitor(monitorType) end print("Available monitors:") - for _, monitor in pairs(monitors) do + for i, monitor in ipairs(monitors) do if monitor then local width, height = monitor.getSize() - print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")") + print(i .. ". " .. peripheral.getName(monitor) .. " (" .. width .. "x" .. height .. ")") end end