From 96613534235ec42d27c60bd9b41ddae1f392054a Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 4 Feb 2024 22:37:03 +0100 Subject: [PATCH] fix(lang): Reduce severity of lang identifier warning (#1367) This should not show users that TTT2 has errors and will only be useful for developers. --- gamemodes/terrortown/gamemode/client/cl_lang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/terrortown/gamemode/client/cl_lang.lua b/gamemodes/terrortown/gamemode/client/cl_lang.lua index a5efa378d..854bed952 100644 --- a/gamemodes/terrortown/gamemode/client/cl_lang.lua +++ b/gamemodes/terrortown/gamemode/client/cl_lang.lua @@ -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