setPaletteColor does not have a "Invalid color" error
IliasHDZ1 opened this issue ยท 5 comments
If you type for example:
term.setPaletteColor(56, 16, 0, 0)
56 is an invalid color.
and as an error. it returns: "window.lua:301: index expected, got nil"
Yes, this is likely a problem with the window
API. On normal computers, which do not have multishell, it should print "Colour out of range" like all the other term functions
Looks like this is already fixed:
What build of the mod are you running? term.setPaletteColour
wasn't in 1.80pr0, so it'll be a later version than that.
Anyway, as the fix was merged before 1.80pr1 was released. I'd recommend updating to that (or even better, a development build).