Skip to content

Commit 636f9c1

Browse files
committed
Compatibility with VRChat SDK 3.2.0
Changes some method calls to reflect changes in the new SDK version
1 parent 1bb77a3 commit 636f9c1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Packages/com.bocud.vrcapitools/Editor/VRChatApiToolsEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public static IEnumerator FetchUploadedData()
8585

8686
if (!APIUser.IsLoggedIn)
8787
yield break;
88-
89-
ApiCache.ClearResponseCache();
88+
89+
ApiCache.Clear();
9090
VRCCachedWebRequest.ClearOld();
9191

9292
if (fetchingAvatars == null)

Packages/com.bocud.vrcapitools/Runtime/VRChatApiTools.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static void FetchApiWorld(string blueprintID)
6161
currentlyFetching.Remove(world.id);
6262
invalidBlueprints.Add(world.id);
6363
Logger.Log($"World '{blueprintID}' doesn't exist so couldn't be loaded.");
64-
ApiCache.Invalidate<ApiWorld>(blueprintID);
64+
ApiCache.Invalidate(blueprintID);
6565
}
6666
else
6767
currentlyFetching.Remove(world.id);
@@ -85,7 +85,7 @@ public static async Task<ApiWorld> FetchApiWorldAsync(string blueprintID)
8585
if (c.Code == 404)
8686
{
8787
Logger.Log($"World '{blueprintID}' doesn't exist so couldn't be loaded.");
88-
ApiCache.Invalidate<ApiWorld>(blueprintID);
88+
ApiCache.Invalidate(blueprintID);
8989
}
9090
else
9191
{
@@ -120,7 +120,7 @@ public static void FetchApiAvatar(string blueprintID)
120120
currentlyFetching.Remove(avatar.id);
121121
invalidBlueprints.Add(avatar.id);
122122
Logger.Log($"Avatar '{blueprintID}' doesn't exist so couldn't be loaded.");
123-
ApiCache.Invalidate<ApiAvatar>(blueprintID);
123+
ApiCache.Invalidate(blueprintID);
124124
}
125125
else
126126
currentlyFetching.Remove(avatar.id);
@@ -144,7 +144,7 @@ public static async Task<ApiAvatar> FetchApiAvatarAsync(string blueprintID)
144144
if (c.Code == 404)
145145
{
146146
Logger.Log($"Avatar '{blueprintID}' doesn't exist so couldn't be loaded.");
147-
ApiCache.Invalidate<ApiAvatar>(blueprintID);
147+
ApiCache.Invalidate(blueprintID);
148148
}
149149

150150
result = c;

0 commit comments

Comments
 (0)