diff --git a/CHANGELOG.md b/CHANGELOG.md index 0142c69..6f80f01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### WorldPredownload v1.6.6 +- Compatibility fix for build 1151 + ### WorldPredownload v1.6.5 - *Actually downloads worlds properly now* diff --git a/RELEASE.md b/RELEASE.md index 1e85916..9a68b97 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,2 +1,2 @@ -### WorldPredownload v1.6.5 -- *Actually downloads worlds properly now* +### WorldPredownload v1.6.6 +- Compatibility fix for build 1151 diff --git a/WorldPredownload/DownloadManager/DownloadInfo.cs b/WorldPredownload/DownloadManager/DownloadInfo.cs index dcff2a9..6b8c6ef 100644 --- a/WorldPredownload/DownloadManager/DownloadInfo.cs +++ b/WorldPredownload/DownloadManager/DownloadInfo.cs @@ -18,7 +18,7 @@ public DownloadInfo( this.InstanceIDTags = instanceIDTags; this.DownloadType = downloadType; this.PageUserInfo = pageUserInfo; - if (pageUserInfo != null) APIUser = pageUserInfo.field_Public_APIUser_0; + if (pageUserInfo != null) APIUser = pageUserInfo.field_Private_APIUser_0; this.PageWorldInfo = pageWorldInfo; this.Notification = notification; } diff --git a/WorldPredownload/Main.cs b/WorldPredownload/Main.cs index 1037b48..c45bedf 100644 --- a/WorldPredownload/Main.cs +++ b/WorldPredownload/Main.cs @@ -3,7 +3,7 @@ using UIExpansionKit.API; using WorldPredownload.UI; -[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.6.5", "gompo", "https://github.com/gompoc/VRChatMods/releases/")] +[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.6.6", "gompo", "https://github.com/gompoc/VRChatMods/releases/")] [assembly: MelonGame("VRChat", "VRChat")] [assembly: ModJsonInfo( 141, @@ -15,7 +15,7 @@ "-Options to follow predownloads configurable via UIX too", new []{"world", "download", "preload", "predownload"}, new []{"[UIExpansionKit](https://api.vrcmg.com/v0/mods/55/UIExpansionKit.dll)"}, - "Compatibility fix", + "Compatibility fix for build 1151", "#2ad9f7" ) ] diff --git a/WorldPredownload/UI/FriendButton.cs b/WorldPredownload/UI/FriendButton.cs index 50e2a0e..4c4271b 100644 --- a/WorldPredownload/UI/FriendButton.cs +++ b/WorldPredownload/UI/FriendButton.cs @@ -37,7 +37,7 @@ public class FriendButton WorldDownloadManager.ProcessDownload( DownloadInfo.CreateUserPageDownloadInfo(GetUserInfo().field_Private_ApiWorld_0, - GetUserInfo().field_Public_APIUser_0.location.Split(':')[1], + GetUserInfo().field_Private_APIUser_0.location.Split(':')[1], DownloadType.Friend, GetUserInfo() )); @@ -74,7 +74,7 @@ public static IEnumerator UpdateText() Button.SetActive(true); if (WorldDownloadManager.Downloading) { - if (GetUserInfo().field_Public_APIUser_0.id.Equals(WorldDownloadManager.DownloadInfo.APIUser.id)) + if (GetUserInfo().field_Private_APIUser_0.id.Equals(WorldDownloadManager.DownloadInfo.APIUser.id)) { CanChangeText = true; } diff --git a/WorldPredownload/WorldPredownload.csproj b/WorldPredownload/WorldPredownload.csproj index f8a22e7..900dba1 100644 --- a/WorldPredownload/WorldPredownload.csproj +++ b/WorldPredownload/WorldPredownload.csproj @@ -3,7 +3,7 @@ net472 true - 1.6.5.0 + 1.6.6.0 9 true annotations