Closed Dadadah closed 3 years ago
Has this been tested with modded discs as well?
Has this been tested with modded discs as well?
This code doesn't modify how the mod handles modded discs. I just tested it to be sure though, modded disks work on local servers as well as dedicated servers.
Good to hear! Hopefully your PR is merged soon.
The PR is now redundant, although the contribution is much appreciated!
Fixes #2
The dedicated server does not have access to the SoundEvent.getID() function, and it had to be replaced with sending the ID of the music disk for built in disks. Instruments also have their enum sent to the client in order to bypass getID() as well.
I tested this solution on my dedicated server, as well in a single player world.
I'm not a Minecraft mod developer, just found these bugs easy to solve. Please let me know if I can improve this solution.