Fix for case insensitivity

This commit is contained in:
Rosenthalk0 2023-06-23 16:47:49 -05:00
parent 96ac7a9c00
commit e90a1cea28

View File

@ -92,7 +92,7 @@ public class SoundObject {
public void playTo(Player player, float volume, float pitch) { public void playTo(Player player, float volume, float pitch) {
if (isCustom()) if (isCustom())
player.playSound(player.getLocation(), key, volume, pitch); player.playSound(player.getLocation(), key.toLowerCase(), volume, pitch);
else else
player.playSound(player.getLocation(), sound, volume, pitch); player.playSound(player.getLocation(), sound, volume, pitch);
} }
@ -103,7 +103,7 @@ public class SoundObject {
public void playAt(Location loc, float volume, float pitch) { public void playAt(Location loc, float volume, float pitch) {
if (isCustom()) if (isCustom())
loc.getWorld().playSound(loc, key, volume, pitch); loc.getWorld().playSound(loc, key.toLowerCase(), volume, pitch);
else else
loc.getWorld().playSound(loc, sound, volume, pitch); loc.getWorld().playSound(loc, sound, volume, pitch);
} }