mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 15:33:52 +01:00
show "on hand" indicators in "avail only" screen
This commit is contained in:
parent
3cbb25d92a
commit
42093582df
2
init.lua
2
init.lua
@ -856,7 +856,7 @@ function unifieddyes.make_colored_square(hexcolor, colorname, showall, creative,
|
|||||||
local overlay = ""
|
local overlay = ""
|
||||||
local colorize = minetest.formspec_escape("^[colorize:#"..hexcolor..":255")
|
local colorize = minetest.formspec_escape("^[colorize:#"..hexcolor..":255")
|
||||||
|
|
||||||
if (showall or not nodepalette) and not creative and inv:contains_item("main", dye) then
|
if not creative and inv:contains_item("main", dye) then
|
||||||
overlay = "^unifieddyes_available_overlay.png"
|
overlay = "^unifieddyes_available_overlay.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user