File tree Expand file tree Collapse file tree
src/main/java/net/raphimc/noteblocktool Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ private void initComponents() {
199199 if (this .songPlayer .isRunning ()) {
200200 this .songPlayer .stop ();
201201 this .songPlayer .setTick (0 );
202- if (this .soundSystem != null ) this .soundSystem .stopSounds ();
203202 } else {
204203 if (this .initSoundSystem ()) {
205204 this .soundSystem .setMasterVolume (this .volumeSlider .getValue () / 100F );
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ public void start() {
4949 throw new UnsupportedOperationException ("Use start(SoundSystem) instead" );
5050 }
5151
52+ @ Override
53+ public void stop () {
54+ super .stop ();
55+ this .soundSystem .stopSounds ();
56+ }
57+
5258 @ Override
5359 protected void createTickTask (final long initialDelay ) {
5460 super .createTickTask (initialDelay );
You can’t perform that action at this time.
0 commit comments