From 3f9e8e45543e3da292c1043de74a4843d8bc2ade Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 25 Feb 2017 13:22:08 -0500 Subject: [PATCH] fix missing full-s50 defs, fix a couple more broken recipes --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e4d1221..49f5c70 100644 --- a/init.lua +++ b/init.lua @@ -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