mirror of
https://github.com/gmod-integration/lua.git
synced 2025-07-07 13:54:47 +00:00
refactor: remove language existence check from saveSetting function
This commit is contained in:
parent
995fa249b0
commit
fa5ce198b0
|
@ -4,15 +4,7 @@ function gmInte.saveSetting(setting, value)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if setting == "language" && !file.Exists("gmod_integration/shared/languages/sh_" .. value .. ".lua", "LUA") then
|
if setting == "id" || setting == "token" then gmInte.aprovedCredentials = false end
|
||||||
gmInte.log("Unknown Language")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if setting == "id" || setting == "token" then
|
|
||||||
gmInte.aprovedCredentials = false
|
|
||||||
end
|
|
||||||
|
|
||||||
// Boolean
|
// Boolean
|
||||||
if value == "true" then value = true end
|
if value == "true" then value = true end
|
||||||
if value == "false" then value = false end
|
if value == "false" then value = false end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user