From 95f009a282b09ddd37af37fe94eb5b222204ab0d Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sat, 8 Sep 2018 10:24:08 -0400 Subject: show in color selector when a dye is on-hand in survival, but unavailable (right-clicked node can't use it) --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 9fa294a..2d0b22b 100644 --- a/init.lua +++ b/init.lua @@ -862,7 +862,11 @@ function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative, local unavail_overlay = "" if not showall and not unifieddyes.palette_has_color[nodepalette.."_"..colorname] then - unavail_overlay = "^unifieddyes_unavailable_overlay.png" + if overlay == "" then + unavail_overlay = "^unifieddyes_unavailable_overlay.png" + else + unavail_overlay = "^unifieddyes_onhand_unavailable_overlay.png" + end end if dye == painting_with then -- cgit v1.2.3