Skip to content

Commit

Permalink
Fix: Play music only if it's not playing
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jan 4, 2025
1 parent 5c77f7d commit b1a2a3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public HowlMusic(FileHandle fileHandle) {

@Override
public void play() {
howl.play();
if(!isPlaying()) {
howl.play();
}
}

@Override
Expand Down

0 comments on commit b1a2a3d

Please sign in to comment.