mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
Ignore null sound by contract. Fixes BUKKIT-4641
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user