From 1b0e384278f56d3705b5e14bcdb640188a6f246a Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 29 Jan 2017 00:06:08 -0500 Subject: fix messed-up grayscale color select logic --- init.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index adf2474..87c71ad 100644 --- a/init.lua +++ b/init.lua @@ -208,14 +208,24 @@ function unifieddyes.getpaletteidx(color, is_color_fdir) color = aliases[color] or color local idx + print("unified dyes says color = "..color) + if is_color_fdir == "wallmounted" then + print("is wallmounted") if grayscale_wallmounted[color] then + print("is in grayscale_wallmounted[]") return (grayscale_wallmounted[color] * 64), 0 end elseif is_color_fdir then + print("is_color_fdir") if grayscale[color] then + print("is in grayscale[]") return (grayscale[color] * 32), 0 - else + end + else + print("is not color fdir") + if grayscale[color] then + print("is in grayscale[]") return grayscale[color], 0 end end -- cgit v1.2.3