Skip to content

Commit

Permalink
Update recommended capacity to account for sdk changes
Browse files Browse the repository at this point in the history
This will prevent errors caused by recommended capacity issues.
  • Loading branch information
BocuD committed Oct 15, 2023
1 parent c3a82bf commit 7d1061f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public async Task<string> UploadWorld(string assetBundlePath, string unityPackag
apiWorld.id = pipelineManager.blueprintId;
}

if (apiWorld.capacity < apiWorld.recommendedCapacity)
apiWorld.capacity = apiWorld.recommendedCapacity;

await UploadWorldData(apiWorld, uploadUnityPackagePath, uploadVrcPath, isUpdate, VRChatApiTools.CurrentPlatform(), worldInfo);

return apiWorld.id;
Expand Down
6 changes: 5 additions & 1 deletion Packages/com.bocud.vrcapitools/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "com.bocud.vrcapitools",
"version": "0.4.0",
"version": "0.4.1",
"displayName": "VRChatApiTools",
"author": {
"name": "BocuD",
"url": "https://github.com/BocuD"
},
"vpmDependencies": {
"com.vrchat.base": "^3.4.x",
"com.vrchat.worlds": "^3.4.x",
},
"description": "A library to interact with and extend the VRChat SDK inside Unity",
"type": "library",
"unity": "2019.4",
Expand Down

0 comments on commit 7d1061f

Please sign in to comment.