mirror of
https://github.com/gmod-integration/lua.git
synced 2025-07-07 11:24:03 +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
|
||||
end
|
||||
|
||||
if setting == "language" && !file.Exists("gmod_integration/shared/languages/sh_" .. value .. ".lua", "LUA") then
|
||||
gmInte.log("Unknown Language")
|
||||
return
|
||||
end
|
||||
|
||||
if setting == "id" || setting == "token" then
|
||||
gmInte.aprovedCredentials = false
|
||||
end
|
||||
|
||||
if setting == "id" || setting == "token" then gmInte.aprovedCredentials = false end
|
||||
// Boolean
|
||||
if value == "true" then value = true end
|
||||
if value == "false" then value = false end
|
||||
|
|
Loading…
Reference in New Issue
Block a user