fix pattern to match dye name with underscores

fixes #12
This commit is contained in:
OgelGames 2023-08-06 00:49:16 +10:00
parent f4a297eb30
commit 2c708abd88
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ local function get_dye_color(name)
color = unifieddyes.get_color_from_dye_name(name)
end
if not color then
color = string.match(name, "^dye:(%w+)$")
color = string.match(name, "^dye:(.+)$")
if color then
color = dye_colors[color]
end