mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Ignore null sound by contract. Fixes BUKKIT-4641
This commit is contained in:
parent
93cfe3961f
commit
8a7c582d54
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void playSound(Location loc, Sound sound, float volume, float pitch) {
|
public void playSound(Location loc, Sound sound, float volume, float pitch) {
|
||||||
|
if (sound == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
playSound(loc, CraftSound.getSound(sound), volume, pitch);
|
playSound(loc, CraftSound.getSound(sound), volume, pitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue