Skip to content

Commit

Permalink
Fixed sound problem, where a sound couldn't be played a second time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegacraft committed Nov 12, 2020
1 parent 7392365 commit ae340a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/engine/sound/Sound.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public Sound(String path) {
* Plays the imported sound.
*/
public void playSound() {
stopSound();
clip.start();
}

Expand Down

0 comments on commit ae340a4

Please sign in to comment.