From 8571f2a7068cfbbb4a9755cf335fab4f7ffb499b Mon Sep 17 00:00:00 2001 From: Marcel Andree <35333559+mandree95@users.noreply.github.com> Date: Tue, 11 Dec 2018 20:22:59 +0100 Subject: [PATCH] Fixes #3 (#5) --- Client/src/main/java/github/lual/util/SoundPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Client/src/main/java/github/lual/util/SoundPlayer.java b/Client/src/main/java/github/lual/util/SoundPlayer.java index 83cd5fe..22f9661 100644 --- a/Client/src/main/java/github/lual/util/SoundPlayer.java +++ b/Client/src/main/java/github/lual/util/SoundPlayer.java @@ -26,6 +26,7 @@ public SoundPlayer(String resource, double volume) { } public void playOnce() { + mediaPlayer.stop(); mediaPlayer.play(); } }