mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
Fix for case insensitivity
This commit is contained in:
parent
96ac7a9c00
commit
e90a1cea28
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user