Skip to content

Commit

Permalink
fix(lang): Reduce severity of lang identifier warning (#1367)
Browse files Browse the repository at this point in the history
This should not show users that TTT2 has errors and will only be useful for developers.
  • Loading branch information
saibotk authored Feb 4, 2024
1 parent 4010072 commit 9661353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/client/cl_lang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function LANG.GetNameFromAlias(langName)

for name, tbl in pairs(LANG.Strings) do
if tbl.__alias and string.lower(tbl.__alias) == langName then
ErrorNoHaltWithStack("[DEPRECATION WARNING]: Language name identifier deprecated, please switch from '" .. langName .. "' to '" .. name .. "'.")
Dev(1, "[DEPRECATION WARNING]: Language name identifier deprecated, please switch from '" .. langName .. "' to '" .. name .. "'.")

return name
end
Expand Down

0 comments on commit 9661353

Please sign in to comment.