diff --git a/Packages/com.bocud.vrcapitools/Editor/VRChatApiUploaderAsync.cs b/Packages/com.bocud.vrcapitools/Editor/VRChatApiUploaderAsync.cs index c5ac879..25769e8 100644 --- a/Packages/com.bocud.vrcapitools/Editor/VRChatApiUploaderAsync.cs +++ b/Packages/com.bocud.vrcapitools/Editor/VRChatApiUploaderAsync.cs @@ -172,6 +172,9 @@ public async Task 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; diff --git a/Packages/com.bocud.vrcapitools/package.json b/Packages/com.bocud.vrcapitools/package.json index 0cfdf78..1894fac 100644 --- a/Packages/com.bocud.vrcapitools/package.json +++ b/Packages/com.bocud.vrcapitools/package.json @@ -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",