diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-22 03:14:20 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-22 03:14:20 -0400 |
commit | b49ed1724b97782be3d783343147c67e018048c7 (patch) | |
tree | 18b21c654cc5ffce8e1ebffeaf513f57d1895b35 /init.lua | |
parent | 992bca7e15e91601688c187d874e3f413bcd2d79 (diff) | |
download | unifieddyes-b49ed1724b97782be3d783343147c67e018048c7.tar unifieddyes-b49ed1724b97782be3d783343147c67e018048c7.tar.gz unifieddyes-b49ed1724b97782be3d783343147c67e018048c7.tar.bz2 unifieddyes-b49ed1724b97782be3d783343147c67e018048c7.tar.xz unifieddyes-b49ed1724b97782be3d783343147c67e018048c7.zip |
fix hue table type for wallmounted in craft helper
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -185,7 +185,11 @@ end local function register_c(craft, hue, sat, val) local color = "" if val then - color = "dye:"..val..hue[1]..sat + if craft.palette == "wallmounted" then + color = "dye:"..val..hue..sat + else + color = "dye:"..val..hue[1]..sat + end else color = "dye:"..hue -- if val is nil, then it's grey. end @@ -230,6 +234,10 @@ function unifieddyes.register_color_craft(craft) for _,val in ipairs(vals_table) do for _,sat in ipairs(sats_table) do + print("[UD] craft = ") + print(dump(craft)) + print("[UD] hue = "..dump(hue).." ~~ sat = "..dump(sat).." ~~ val = "..dump(val)) + if sat == "_s50" and val ~= "" and val ~= "medium_" and val ~= "dark_" then break end register_c(craft, hue, sat, val) |