Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Compatibility fix for 1151
Browse files Browse the repository at this point in the history
  • Loading branch information
gompoc committed Nov 19, 2021
1 parent f55829a commit 7a75dac
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### WorldPredownload v1.6.6
- Compatibility fix for build 1151

### WorldPredownload v1.6.5
- *Actually downloads worlds properly now*

Expand Down
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### WorldPredownload v1.6.5
- *Actually downloads worlds properly now*
### WorldPredownload v1.6.6
- Compatibility fix for build 1151
2 changes: 1 addition & 1 deletion WorldPredownload/DownloadManager/DownloadInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions WorldPredownload/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
)
]
Expand Down
4 changes: 2 additions & 2 deletions WorldPredownload/UI/FriendButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
));
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion WorldPredownload/WorldPredownload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<VrcReferences>true</VrcReferences>
<Version>1.6.5.0</Version>
<Version>1.6.6.0</Version>
<LangVersion>9</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>annotations</Nullable>
Expand Down

0 comments on commit 7a75dac

Please sign in to comment.