re-institute monitor nil check

This commit is contained in:
2026-06-25 14:39:51 -05:00
parent e202ced697
commit ab987319cb

View File

@@ -64,10 +64,10 @@ function identifyMonitor(monitorType)
-- Find all available monitors
local availableMonitors = peripheral.find("monitor")
--if not availableMonitors or #availableMonitors == 0 then
-- print("No monitors found on the network.")
-- return nil
--end
if not availableMonitors or #availableMonitors == 0 then
print("No monitors found on the network.")
return nil
end
print("Available monitors:")
for i, name in ipairs(availableMonitors) do