fix identifyMonitor?
This commit is contained in:
3
main.lua
3
main.lua
@@ -70,8 +70,7 @@ local function identifyMonitor(monitorType)
|
|||||||
end
|
end
|
||||||
|
|
||||||
print("Available monitors:")
|
print("Available monitors:")
|
||||||
for i, name in ipairs(monitors) do
|
for _, monitor in pairs(monitors) do
|
||||||
local monitor = peripheral.wrap(name)
|
|
||||||
if monitor then
|
if monitor then
|
||||||
local width, height = monitor.getSize()
|
local width, height = monitor.getSize()
|
||||||
print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")")
|
print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")")
|
||||||
|
|||||||
Reference in New Issue
Block a user