Ignore null sound by contract. Fixes BUKKIT-4641

Dieser Commit ist enthalten in:
Wesley Wolfe 2013-08-02 20:05:22 -05:00
Ursprung 93cfe3961f
Commit 8a7c582d54

Datei anzeigen

@ -259,6 +259,9 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public void playSound(Location loc, Sound sound, float volume, float pitch) {
if (sound == null) {
return;
}
playSound(loc, CraftSound.getSound(sound), volume, pitch);
}