Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit 0e9337b

Browse files
committed
JN: fix wait condition for customs sounds
1 parent 3617953 commit 0e9337b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

JoinNotifier/JoinNotifier.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<VrcReferences>true</VrcReferences>
66
<UseAltLibs>true</UseAltLibs>
7-
<AssemblyVersion>1.0.1</AssemblyVersion>
7+
<AssemblyVersion>1.0.2</AssemblyVersion>
88
</PropertyGroup>
99
<ItemGroup>
1010
<EmbeddedResource Include="joinnotifier.assetbundle" />

JoinNotifier/JoinNotifierMod.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using VRC.Management;
1717
using Object = UnityEngine.Object;
1818

19-
[assembly:MelonInfo(typeof(JoinNotifierMod), "JoinNotifier", "1.0.1", "knah", "https://github.com/knah/VRCMods")]
19+
[assembly:MelonInfo(typeof(JoinNotifierMod), "JoinNotifier", "1.0.2", "knah", "https://github.com/knah/VRCMods")]
2020
[assembly:MelonGame("VRChat", "VRChat")]
2121

2222
namespace JoinNotifier
@@ -91,7 +91,7 @@ public IEnumerator InitThings()
9191
var uwr = UnityWebRequest.Get($"file://{Path.Combine(Environment.CurrentDirectory, CustomJoinSoundFileName)}");
9292
uwr.SendWebRequest();
9393

94-
while (uwr.isDone) yield return null;
94+
while (!uwr.isDone) yield return null;
9595

9696
myJoinClip = WebRequestWWW.InternalCreateAudioClipUsingDH(uwr.downloadHandler, uwr.url, false, false, AudioType.UNKNOWN);
9797
}
@@ -108,7 +108,7 @@ public IEnumerator InitThings()
108108
var uwr = UnityWebRequest.Get($"file://{Path.Combine(Environment.CurrentDirectory, CustomLeaveSoundFileName)}");
109109
uwr.SendWebRequest();
110110

111-
while (uwr.isDone) yield return null;
111+
while (!uwr.isDone) yield return null;
112112

113113
myLeaveClip = WebRequestWWW.InternalCreateAudioClipUsingDH(uwr.downloadHandler, uwr.url, false, false, AudioType.UNKNOWN);
114114
}

ReleaseChangelog.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Changes:
2-
* JoinNotifier: fixed for build 1102
3-
* Mirror Resolution Unlimiter: fixed settings not being applied on startup
4-
* UI Expansion Kit: fixed quick menu expando panels being shown all the time regardless of settings or hiding them manually
2+
* JoinNotifier: fixed custom sounds breaking the mod occasionally
53

64
**USE IT AT YOUR OWN RISK.** Modding the client is against VRChat ToS. I am not responsible for any bans or other punishments you may get by using these mods!

0 commit comments

Comments
 (0)