fix identifyMonitor?

This commit is contained in:
2026-06-25 14:45:52 -05:00
parent 19ee451b3d
commit a26fd278da

View File

@@ -70,8 +70,7 @@ local function identifyMonitor(monitorType)
end
print("Available monitors:")
for i, name in ipairs(monitors) do
local monitor = peripheral.wrap(name)
for _, monitor in pairs(monitors) do
if monitor then
local width, height = monitor.getSize()
print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")")