forked from mtcontrib/unifieddyes
show in color selector when a dye is on-hand in survival, but unavailable
(right-clicked node can't use it)
This commit is contained in:
parent
fb2c14b4a8
commit
95f009a282
4
init.lua
4
init.lua
@ -862,7 +862,11 @@ function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative,
|
|||||||
|
|
||||||
local unavail_overlay = ""
|
local unavail_overlay = ""
|
||||||
if not showall and not unifieddyes.palette_has_color[nodepalette.."_"..colorname] then
|
if not showall and not unifieddyes.palette_has_color[nodepalette.."_"..colorname] then
|
||||||
|
if overlay == "" then
|
||||||
unavail_overlay = "^unifieddyes_unavailable_overlay.png"
|
unavail_overlay = "^unifieddyes_unavailable_overlay.png"
|
||||||
|
else
|
||||||
|
unavail_overlay = "^unifieddyes_onhand_unavailable_overlay.png"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if dye == painting_with then
|
if dye == painting_with then
|
||||||
|
BIN
textures/unifieddyes_onhand_unavailable_overlay.png
Normal file
BIN
textures/unifieddyes_onhand_unavailable_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 319 B |
Loading…
Reference in New Issue
Block a user