Skip to content

Commit b31698d

Browse files
committed
Load custom instruments from Minecraft NoteBlock Studio by default
1 parent c26b8b0 commit b31698d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/net/raphimc/noteblocktool/audio/SoundMap.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ public class SoundMap {
5353
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BANJO, "banjo.ogg");
5454
INSTRUMENT_SOUNDS.put(MinecraftInstrument.PLING, "pling.ogg");
5555

56-
reload(null);
56+
try {
57+
SoundMap.reload(new File(System.getProperty("user.home"), "Minecraft Note Block Studio/Data/Sounds"));
58+
} catch (Throwable t) {
59+
System.err.println("Failed to load custom sounds from Minecraft NoteBlock Studio folder");
60+
t.printStackTrace();
61+
reload(null);
62+
}
5763
}
5864

5965
public static void reload(final File customSoundsFolder) {

0 commit comments

Comments
 (0)