mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Fixed null exception
This commit is contained in:
1 parent
3220931e62
commit
a3e74f2ea5
1 file changed
+4
-2
@@ -17,8 +17,10 @@ public class MusicController {
|
||||
public void stopMusic(){
|
||||
SoundHandler soundHandler = Minecraft.getMinecraft().getSoundHandler();
|
||||
soundHandler.stopSounds();
|
||||
this.sound.stopSound();
|
||||
this.sound = null;
|
||||
if (this.isPlaying()) {
|
||||
this.sound.stopSound();
|
||||
this.sound = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void playStreaming(String music, Entity entity){
|
||||
|
||||
Reference in new issue
Block a user