geforkt von Mirrors/Paper
Ignore null sound by contract. Fixes BUKKIT-4641
By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
249638ac01
Commit
cdb0ea7069
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren