Texturepacks allow for sending custom sounds. But when sending custom sounds, the line... final String soundName = sound.toString();
...will throw a NullPointer due to the sound not being present in the Sound Enumeration. This check basicly just prevents this exception from happening.
Texturepacks allow for sending custom sounds. But when sending custom sounds, the line... final String soundName = sound.toString(); ...will throw a NullPointer due to the sound not being present in the Sound Enumeration. This check basicly just prevents this exception from happening.