From cdb0ea7069c1a4c20ec89cbfa7c9829675ea330c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 2 Aug 2013 20:05:22 -0500 Subject: [PATCH] Ignore null sound by contract. Fixes BUKKIT-4641 By: Wesley Wolfe --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 02c7b8a892..d5d43c9a60 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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); }