mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 15:33:52 +01:00
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
6
init.lua
6
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
|
||||
|
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