File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/java/net/raphimc/noteblocktool Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ private void initComponents() {
199
199
if (this .songPlayer .isRunning ()) {
200
200
this .songPlayer .stop ();
201
201
this .songPlayer .setTick (0 );
202
- if (this .soundSystem != null ) this .soundSystem .stopSounds ();
203
202
} else {
204
203
if (this .initSoundSystem ()) {
205
204
this .soundSystem .setMasterVolume (this .volumeSlider .getValue () / 100F );
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ public void start() {
49
49
throw new UnsupportedOperationException ("Use start(SoundSystem) instead" );
50
50
}
51
51
52
+ @ Override
53
+ public void stop () {
54
+ super .stop ();
55
+ this .soundSystem .stopSounds ();
56
+ }
57
+
52
58
@ Override
53
59
protected void createTickTask (final long initialDelay ) {
54
60
super .createTickTask (initialDelay );
You can’t perform that action at this time.
0 commit comments