Closed jakobkmar closed 1 year ago
Does this introduce breaking changes to existing code? If yes, what would be the new method of sending and receiving packets
Normal existing code won't be affected by this.
The following might break some code:
silk:network
anymore, but instead the id of the packetc2cPacket
(client to client) you have to modify the forwardOnServer function you defined, since it now requires a List<Player>
instead of just Player
This removes the usage of fabric-api from silk-network. Therefore the module no longer depends on fabric-api at all.
Instead, silk-network now sends custom payload packets directly. Each packet will now be sent on a channel of the same name as the packet identifier.
Client to client packets can now be forwarded to multiple players at once.
It is now garuanteed that receivers won't be executed concurrently.