kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics from 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
160 stars 70 forks source link

fix NullPointer when sending custom sounds #724

Closed Waischbrot closed 3 months ago

Waischbrot commented 4 months ago

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.