fix error checking

This commit is contained in:
Evil Factory
2022-05-19 14:51:11 -03:00
parent ca0da04ad0
commit 104983fd37

View File

@@ -6,7 +6,7 @@ LuaUserData.AddMethod(descriptor, "GetWorkshopCollection", function (id, callbac
Networking.RequestPostHTTP("https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/", function (result)
local data = json.parse(result)
if data.response.collectiondetails.children == nil then
if data.response.collectiondetails[1].children == nil then
callback()
return
end