Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix NullPointer when sending custom sounds #724

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

Waischbrot
Copy link
Contributor

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.
@kernitus kernitus merged commit 976d31f into kernitus:master Mar 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants