summaryrefslogtreecommitdiff
path: root/server/src/matcher/library.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/library.lua')
-rw-r--r--server/src/matcher/library.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/matcher/library.lua b/server/src/matcher/library.lua
index f6211431..5b150513 100644
--- a/server/src/matcher/library.lua
+++ b/server/src/matcher/library.lua
@@ -10,11 +10,17 @@ local function mergeEnum(lib, locale)
if enum.enum then
pack[enum.enum] = enum
end
+ if enum.code then
+ pack[enum.code] = enum
+ end
end
for _, enum in ipairs(locale) do
if pack[enum.enum] then
pack[enum.enum].description = enum.description
end
+ if pack[enum.code] then
+ pack[enum.code].description = enum.description
+ end
end
end