Skip to content

Commit

Permalink
fix sound config
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 22, 2024
1 parent e4a5503 commit 16d4b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Config() throws Exception {
"Inform flying player if they are in old or new chunks.");
this.elytra_play_too_fast_sound = getBoolean("elytra.elytra-speed.play-sound-when-too-fast", true,
"Plays XP pickup sound to alert players when theyre going above the limit.");
String configuredSound = getString("elytra.elytra-speed.play-sound-when-too-fast", Sound.ENTITY_EXPERIENCE_ORB_PICKUP.name());
String configuredSound = getString("elytra.elytra-speed.play-sound-when-too-fast.sound", Sound.ENTITY_EXPERIENCE_ORB_PICKUP.name());
Sound parsedSound;
try {
parsedSound = Sound.valueOf(configuredSound);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Config() throws Exception {
"Inform flying player if they are in old or new chunks.");
this.elytra_play_too_fast_sound = getBoolean("elytra.elytra-speed.play-sound-when-too-fast", true,
"Plays XP pickup sound to alert players when theyre going above the limit.");
String configuredSound = getString("elytra.elytra-speed.play-sound-when-too-fast", XSound.ENTITY_EXPERIENCE_ORB_PICKUP.name());
String configuredSound = getString("elytra.elytra-speed.play-sound-when-too-fast.sound", XSound.ENTITY_EXPERIENCE_ORB_PICKUP.name());
Sound parsedSound;
try {
parsedSound = XSound.valueOf(configuredSound).parseSound();
Expand Down

0 comments on commit 16d4b01

Please sign in to comment.