Ignore the null Sound.
This commit is contained in:
parent
d0235e2358
commit
481d2c060f
|
@ -123,7 +123,7 @@ public class SoundDistance extends BaseAdapter {
|
||||||
private boolean isSoundMonitoredLatest(final PacketContainer packetContainer) {
|
private boolean isSoundMonitoredLatest(final PacketContainer packetContainer) {
|
||||||
StructureModifier<Sound> sounds = packetContainer.getSoundEffects();
|
StructureModifier<Sound> sounds = packetContainer.getSoundEffects();
|
||||||
for (final Sound sound : sounds.getValues()) {
|
for (final Sound sound : sounds.getValues()) {
|
||||||
if (effectNames.contains(sound.name())) {
|
if (sound != null && effectNames.contains(sound.name())) {
|
||||||
//debug(null, "MONITOR SOUND: " + sound);
|
//debug(null, "MONITOR SOUND: " + sound);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue