#85 handling supervisor disconnected, bugfix with renderer

This commit is contained in:
Mikayla Fischler
2022-09-05 16:24:57 -04:00
parent e456d34468
commit 397e311f1b
2 changed files with 13 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ local function _reset_display(monitor, recolor)
end
else
-- reset all colors
for _, val in colors do
for _, val in pairs(colors) do
-- colors api has constants and functions, just get color constants
if type(val) == "number" then
monitor.setPaletteColor(val, term.nativePaletteColor(val))