From db2f5ab416ad2108d7d2ffcf790892d55ad500b5 Mon Sep 17 00:00:00 2001 From: CreativeMD Date: Wed, 13 Jul 2016 20:10:38 +0200 Subject: [PATCH] Fixed sound paused/resume issue --- .../minecraft/client/audio/SoundManager.java.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/client/audio/SoundManager.java.patch b/patches/minecraft/net/minecraft/client/audio/SoundManager.java.patch index 462f42c8c..ed5adecd7 100644 --- a/patches/minecraft/net/minecraft/client/audio/SoundManager.java.patch +++ b/patches/minecraft/net/minecraft/client/audio/SoundManager.java.patch @@ -16,7 +16,15 @@ } private synchronized void func_148608_i() -@@ -338,6 +340,9 @@ +@@ -205,6 +207,7 @@ + this.field_148620_e.stop(s); + } + ++ this.field_189000_p.clear(); //Forge: MC-35856 Fixed paused sounds repeating when switching worlds + this.field_148629_h.clear(); + this.field_148626_m.clear(); + this.field_148625_l.clear(); +@@ -338,6 +341,9 @@ { if (this.field_148617_f) { @@ -26,7 +34,7 @@ SoundEventAccessor soundeventaccessor = p_148611_1_.func_184366_a(this.field_148622_c); ResourceLocation resourcelocation = p_148611_1_.func_147650_b(); -@@ -400,10 +405,12 @@ +@@ -400,10 +406,12 @@ if (sound.func_188723_h()) { this.field_148620_e.newStreamingSource(false, s, func_148612_a(resourcelocation1), resourcelocation1.toString(), flag, p_148611_1_.func_147649_g(), p_148611_1_.func_147654_h(), p_148611_1_.func_147651_i(), p_148611_1_.func_147656_j().func_148586_a(), f);