From d156914d395be0f6e297f5d595ed4459828b8a35 Mon Sep 17 00:00:00 2001 From: Falco Peijnenburg Date: Sun, 5 Nov 2023 12:15:03 +0100 Subject: [PATCH] Remove validity check from DarkRP.getPhraseLocalised --- gamemode/modules/language/sh_language.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/modules/language/sh_language.lua b/gamemode/modules/language/sh_language.lua index 62891ddc5..cde8ba0da 100644 --- a/gamemode/modules/language/sh_language.lua +++ b/gamemode/modules/language/sh_language.lua @@ -29,7 +29,7 @@ function DarkRP.getPhrase(name, ...) end function DarkRP.getPhraseLocalized(ply, name, ...) - local lang = IsValid(ply) and ply:GetInfo("gmod_language") or selectedLanguage + local lang = ply:GetInfo("gmod_language") or selectedLanguage local langTable = rp_languages[lang] or rp_languages.en return (langTable[name] or rp_languages.en[name]) and string.format(langTable[name] or rp_languages.en[name], ...) or nil