Skip to content

Commit 423fe46

Browse files
committed
restart playing title music if music is reenabled
1 parent 3fe2fa2 commit 423fe46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/runejs/client/Class60.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public static void method992() {
188188

189189
public static void updateLogin() {
190190
MovedStatics.method836(1);
191+
191192
if(MouseHandler.clickType == 1 && RSString.clickY >= ScreenController.drawHeight-42 && Class57.clickX>=ScreenController.drawWidth-42 ){
192193
int newVolume = 0;
193194
if(RSCanvas.musicVolume == 0) {
@@ -197,8 +198,10 @@ public static void updateLogin() {
197198
if(newVolume == 0) {
198199
Class33.method402(false);
199200
Class35.songTimeout = 0;
200-
} else
201+
} else {
202+
Class33.method412(false, CacheArchive.musicCacheArchive, 0, (byte) 66, Native.titleSong, 10, "", RSCanvas.musicVolume);
201203
MovedStatics.method456(newVolume);
204+
}
202205
} else {
203206
Class33.method414(false, 0, MouseHandler.currentSongId, newVolume, 0, CacheArchive.musicCacheArchive);
204207
Class35.songTimeout = 0;

0 commit comments

Comments
 (0)