diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-25 13:22:08 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-25 13:22:08 -0500 |
commit | 3f9e8e45543e3da292c1043de74a4843d8bc2ade (patch) | |
tree | 341edecad2c1945df4463200406873720c23cf5e | |
parent | 92da3a534544ad4c0a90d987e813f53a24fb3fd8 (diff) | |
download | unifieddyes-3f9e8e45543e3da292c1043de74a4843d8bc2ade.tar unifieddyes-3f9e8e45543e3da292c1043de74a4843d8bc2ade.tar.gz unifieddyes-3f9e8e45543e3da292c1043de74a4843d8bc2ade.tar.bz2 unifieddyes-3f9e8e45543e3da292c1043de74a4843d8bc2ade.tar.xz unifieddyes-3f9e8e45543e3da292c1043de74a4843d8bc2ade.zip |
fix missing full-s50 defs,
fix a couple more broken recipes
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -692,7 +692,7 @@ for _, h in ipairs(unifieddyes.HUES_EXTENDED) do local val = unifieddyes.VALS_EXTENDED[v+1] local factor = 40 - if v > 4 then factor = 75 end + if v > 3 then factor = 75 end local r2 = math.max(math.min(r + (4-v)*factor, 255), 0) local g2 = math.max(math.min(g + (4-v)*factor, 255), 0) @@ -719,7 +719,7 @@ for _, h in ipairs(unifieddyes.HUES_EXTENDED) do minetest.register_alias("unifieddyes:"..val..hue, "dye:"..val..hue) end - if v > 4 then -- also register the low-sat version + if v > 3 then -- also register the low-sat version local pr = 0.299 local pg = 0.587 @@ -818,7 +818,7 @@ local shade_crafts = { { "medium_", "_s50", "dye:black", "dye:white", nil, 3 }, { "dark_", "", "dye:black", "dye:black", nil, 3 }, { "dark_", "_s50", "dye:dark_grey", nil, nil, 2 }, - { "dark_", "_s50", "dye:black", "dye:white", "dye:white", 4 }, + { "dark_", "_s50", "dye:black", "dye:black", "dye:white", 4 }, } for _,i in ipairs(base_color_crafts) do |