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
magneticflux- commented 2021-08-06 09:57:35 +00:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
No description provided.