mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
Fixed music continuing to play for server bards even after logging out
This commit is contained in:
1 parent
6e1b2f957f
commit
b64481dec1
3 files changed
+8
-5
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.client;
|
||||
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import noppes.npcs.client.controllers.MusicController;
|
||||
import noppes.npcs.client.gui.customoverlay.OverlayCustom;
|
||||
import noppes.npcs.client.gui.select.GuiSoundSelection;
|
||||
import noppes.npcs.client.gui.select.GuiTextureSelection;
|
||||
@@ -61,6 +62,9 @@ public class ClientCacheHandler {
|
||||
// Clear Texture Caches
|
||||
GuiSoundSelection.cachedDomains.clear();
|
||||
GuiTextureSelection.cachedTextures.clear();
|
||||
|
||||
// Clear music/bard sounds
|
||||
MusicController.Instance.stopAllSounds();
|
||||
}
|
||||
|
||||
public static void clearSkinCache() {
|
||||
|
||||
Reference in new issue
Block a user