diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-29 00:06:08 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-29 00:06:08 -0500 |
commit | 1b0e384278f56d3705b5e14bcdb640188a6f246a (patch) | |
tree | b93bbfe3f1d5ae50c17ba098ddd547f92d20a3ba | |
parent | 3b942c352f6e79e51bf0ccda2c8ebff0dd0401ee (diff) | |
download | unifieddyes-1b0e384278f56d3705b5e14bcdb640188a6f246a.tar unifieddyes-1b0e384278f56d3705b5e14bcdb640188a6f246a.tar.gz unifieddyes-1b0e384278f56d3705b5e14bcdb640188a6f246a.tar.bz2 unifieddyes-1b0e384278f56d3705b5e14bcdb640188a6f246a.tar.xz unifieddyes-1b0e384278f56d3705b5e14bcdb640188a6f246a.zip |
fix messed-up grayscale color select logic
-rw-r--r-- | init.lua | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |