1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2025-11-06 10:25:22 +01:00

Add support for brown and pink to get_color_from_dye_name (#26)

This commit is contained in:
Thomas--S
2025-11-05 00:44:28 +01:00
committed by GitHub
parent 4229eabe65
commit 73c80155f8

View File

@@ -489,7 +489,11 @@ function unifieddyes.get_color_from_dye_name(name)
return "000000"
elseif name == "dye:white" then
return "ffffff"
end
elseif name == "dye:brown" then
return "b43500"
elseif name == "dye:pink" then
return "ff5050"
end
local item = minetest.registered_items[name]
if not item then return end
local inv_image = item.inventory_image