change path from sound

This commit is contained in:
Ole Wachtel 2024-11-12 14:37:07 +01:00
parent 521f6a578f
commit 0ae3c62215
1 changed files with 3 additions and 1 deletions

View File

@ -10,8 +10,10 @@ import java.util.Map;
public class SoundHandler { public class SoundHandler {
private static boolean soundOn = true; 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( 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) { public static void playSound(String soundName) {