add Sound in to Thread #5

Merged
lgc merged 5 commits from ole into main 2024-11-12 14:00:35 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 0ae3c62215 - Show all commits

View File

@ -10,8 +10,10 @@ import java.util.Map;
public class SoundHandler {
private static boolean soundOn = true;
// Wenn fehler beim erstellen von .jar mit sound hier gucken
private static HashMap<String, String> sounds = new HashMap<String, String>(Map.of(
"hit", "~/../Sound/water-drip.mp3"
"hit", "./Sound/water-drip.mp3"
));
public static void playSound(String soundName) {