diff --git a/mods/CORE/CraftSystem/src/CraftSystem/BaseCraftHandler.lua b/mods/CORE/CraftSystem/src/CraftSystem/BaseCraftHandler.lua index b09aaff..57d2a65 100644 --- a/mods/CORE/CraftSystem/src/CraftSystem/BaseCraftHandler.lua +++ b/mods/CORE/CraftSystem/src/CraftSystem/BaseCraftHandler.lua @@ -84,13 +84,14 @@ end ---@param pattern string ---@return CraftSystem.BaseCraft[] local function getMathedCrafts(crafts, pattern) + local pattern = string_utf8.lower(pattern) local matchedCrafts = {} for _, craft in ipairs(crafts) do local outputItem = ItemStack(craft.output) local itemSettings = Smc.getItemDefinition(outputItem).settings - local ruName = core.get_translated_string('ru', itemSettings._title) - local enName = core.get_translated_string('en', itemSettings._title) + local ruName = string_utf8.lower(core.get_translated_string('ru', itemSettings._title)) + local enName = string_utf8.lower(core.get_translated_string('en', itemSettings._title)) if stringMatch(outputItem:get_name(), pattern) or stringMatch(ruName, pattern) or