Use standard SoundEvent instance for correct Registry behavior #2

Merged
magneticflux- merged 1 commits from 1.17 into 1.17 2021-08-06 11:16:51 +00:00

1 Commits

Author SHA1 Message Date
Mitchell Skaggs ead447789c
Use standard `SoundEvent` instance for correct `Registry` behavior
Registries use object identity for hashing and comparison, so creating a new `SoundEvent` instance isn't guaranteed to return the same registry entry for network serialization, etc.

Closes #1
2021-08-06 04:57:02 -05:00