From 2c708abd8816b08679b61068446259101f66abbc Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 6 Aug 2023 00:49:16 +1000 Subject: [PATCH] fix pattern to match dye name with underscores fixes #12 --- crafts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crafts.lua b/crafts.lua index 261ac17..748b356 100644 --- a/crafts.lua +++ b/crafts.lua @@ -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