Skip to content

Commit

Permalink
Fix bug with sword replacement priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 25, 2023
1 parent aa89b2d commit 4367da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4367da8

Please sign in to comment.