Skip to content

Commit b4c3d42

Browse files
authored
Update sv_steamplaytime.lua
1 parent 7ee305c commit b4c3d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

garrysmod/lua/incredible_api/sv_steamplaytime.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function APIModule:Call(target, steamapi_key, callback, appid)
1010
target = self:RequestSteamID64(target)
1111
if not isstr(target) then return end
1212

13-
appid = appid or 4000
13+
appid = {[appid or 4000] = true}
1414

1515
local cache = self:GetCache(target)
1616
if cache and callback then
@@ -24,7 +24,7 @@ function APIModule:Call(target, steamapi_key, callback, appid)
2424
if not result then return end
2525

2626
for k,v in pairs(result) do
27-
if v["appid"] == appid then
27+
if appid[v.appid] then
2828
local result = v["playtime_forever"]
2929

3030
self:DoCache(target, result)

0 commit comments

Comments
 (0)