Skip to content

Conversation

@SquidDev
Copy link
Contributor

The method to register new SoundEvents is private, which means that few (if any) mods actually register them. Consequently, one could not use the speaker to play any modded sound, as they weren't registered on the server side.

Using SPacketCustomSound does mean we can no longer determine if a sound exists or not, but I think a price I'm willing to pay in order to allow playing modded sounds.

The method to register new SoundEvents is private, which means that few
(if any) mods actually register them. Consequently, one could not use
the speaker to play any modded sound, as they weren't registered on the
server side.

Using SPacketCustomSound does mean we can no longer determine if a sound
exists or not, but I think a price I'm willing to pay in order to allow
playing modded sounds.
@Lupus590
Copy link
Contributor

What happens if I try to play a sound that doesn't exist?

@SquidDev
Copy link
Contributor Author

It just returns true and does nothing on the client.

This restores the previous behaviour.
ccserver pushed a commit to ccserver/ComputerCraft that referenced this pull request Sep 16, 2019
…speaker-sound

Change speakers to use the SPacketCustomSound packet instead
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