From 13a8cbb38f4a39588910a1463b26925927750632 Mon Sep 17 00:00:00 2001 From: "Alexand(er|ra) Yst" Date: Sat, 15 Dec 2018 10:53:35 +0000 Subject: [PATCH] Some of the numbers relating to greys are used inconsistently, making three of the palette colours unreachable. This bug patch fixes the numbers and restores full usability of the palette. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e19cbf3..673eef1 100644 --- a/init.lua +++ b/init.lua @@ -128,7 +128,7 @@ unifieddyes.GREYS = { unifieddyes.GREYS_EXTENDED = table.copy(unifieddyes.GREYS) for i = 1, 14 do - if i ~= 0 and i ~= 3 and i ~= 7 and i ~= 11 and i ~= 15 then + if i ~= 0 and i ~= 4 and i ~= 8 and i ~= 11 and i ~= 15 then table.insert(unifieddyes.GREYS_EXTENDED, "grey_"..i) end end @@ -449,7 +449,7 @@ function unifieddyes.getpaletteidx(color, palette_type) ["grey_14"] = 1, ["grey_13"] = 2, ["grey_12"] = 3, - ["light_grey"] = 3, + ["light_grey"] = 4, ["grey_11"] = 4, ["grey_10"] = 5, ["grey_9"] = 6,