diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/window.lua b/src/main/resources/assets/computercraft/lua/rom/apis/window.lua index 78e329b11c..df44fd0ece 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/window.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/window.lua @@ -299,6 +299,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible ) local tCol if type(colour) == "number" and type(r) == "number" and g == nil and b == nil then tCol = { colours.rgb8( r ) } + tPalette[ colour ] = tCol elseif type(colour) == "number" and type(r) == "number" and type(g) == "number" and type(b) == "number" then tCol = tPalette[ colour ] tCol[1] = r