1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2024-11-13 05:50:38 +01:00

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

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