mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-21 06:02:35 +01:00
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) {
|
||||
StructureModifier<Sound> sounds = packetContainer.getSoundEffects();
|
||||
for (final Sound sound : sounds.getValues()) {
|
||||
if (effectNames.contains(sound.name())) {
|
||||
if (sound != null && effectNames.contains(sound.name())) {
|
||||
//debug(null, "MONITOR SOUND: " + sound);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user