We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac1771 commit 1100050Copy full SHA for 1100050
1 file changed
src/main/java/net/raphimc/noteblocklib/player/SongPlayer.java
@@ -227,7 +227,9 @@ protected void tick() {
227
this.tick++;
228
if (this.tick >= this.song.getNotes().getLengthInTicks()) {
229
this.onSongFinished();
230
- return;
+ if (!this.isRunning()) {
231
+ return; // Return if the song got stopped in the onSongFinished method
232
+ }
233
}
234
if (this.ticksPerSecond != this.song.getTempoEvents().getEffectiveTempo(this.tick)) {
235
this.ticksPerSecond = this.song.getTempoEvents().getEffectiveTempo(this.tick);
0 commit comments