fix identifyMonitor?
This commit is contained in:
3
main.lua
3
main.lua
@@ -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 .. ")")
|
||||
|
||||
Reference in New Issue
Block a user