Skip to content

Commit b1cb628

Browse files
committed
Fix different sounds being used for other Alarms
1 parent 01787a7 commit b1cb628

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/CWX-MegaMod/AlarmChanger/AlarmChanger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ private async Task SetSounds()
5050
return;
5151
}
5252

53+
var clip = _clips[UnityEngine.Random.Range(0, _clips.Count)];
54+
5355
foreach (var sub in subs)
5456
{
55-
sub.Sounds.FirstOrDefault().Clip = _clips[UnityEngine.Random.Range(0, _clips.Count)];
57+
sub.Sounds.FirstOrDefault().Clip = clip;
5658
}
5759
}
5860

src/CWX-MegaMod/MegaMod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace CWX_MegaMod
1212
{
13-
[BepInPlugin("CWX.MegaMod", "CWX-MegaMod", "1.2.1")]
13+
[BepInPlugin("CWX.MegaMod", "CWX-MegaMod", "1.2.3")]
1414
public class MegaMod : BaseUnityPlugin
1515
{
1616
internal new static ManualLogSource Logger { get; private set; }

0 commit comments

Comments
 (0)