diff --git a/mods/ctf/ctf_modebase/features.lua b/mods/ctf/ctf_modebase/features.lua index 814c7281cb..07b7adeee2 100644 --- a/mods/ctf/ctf_modebase/features.lua +++ b/mods/ctf/ctf_modebase/features.lua @@ -690,7 +690,7 @@ return { end end, sword = function(item) - local mod, match = item:get_name():match("(%a+):sword_(%a+)") + local mod, match = item:get_name():match("([^:]+):sword_(%a+)") if mod and (mod == "default" or mod == "ctf_melee") and match then return table.indexof(item_levels, match)