mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Add a quick null check
This commit is contained in:
parent
567f278131
commit
dcbcbc79f4
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ public class SoundGroup {
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sound == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
disguiseSounds.put(sound, type);
|
disguiseSounds.put(sound, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue