Skip to content

Commit

Permalink
namespacekey should be lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
steve4744 committed Nov 25, 2024
1 parent e8d15c4 commit 2a9fa59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tntrun/arena/handlers/SoundHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public SoundHandler (TNTRun plugin) {

@Override
public void NOTE_PLING(Player p, float volume, float pitch) {
NamespacedKey key = NamespacedKey.minecraft("BLOCK_NOTE_BLOCK_PLING");
NamespacedKey key = NamespacedKey.minecraft("block_note_block_pling");
p.playSound(p.getLocation(), Registry.SOUNDS.get(key), volume, pitch);
}

Expand Down Expand Up @@ -74,7 +74,7 @@ public void BLOCK_BREAK(Block fblock) {
* @return sound
*/
private Sound getSound(String path) {
NamespacedKey key = NamespacedKey.minecraft(plugin.getConfig().getString("sounds." + path + ".sound"));
NamespacedKey key = NamespacedKey.minecraft(plugin.getConfig().getString("sounds." + path + ".sound").toLowerCase());
return Registry.SOUNDS.get(key);
}

Expand Down

0 comments on commit 2a9fa59

Please sign in to comment.