mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2025-11-06 18:35:23 +01:00
Add support for brown and pink to get_color_from_dye_name (#26)
This commit is contained in:
4
api.lua
4
api.lua
@@ -489,6 +489,10 @@ function unifieddyes.get_color_from_dye_name(name)
|
||||
return "000000"
|
||||
elseif name == "dye:white" then
|
||||
return "ffffff"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user