Fabric API

Fabric API

106M Downloads

Add hook for only sending packet if the other side can receive

liach opened this issue ยท 3 comments

commented

In JamiesWhiteShirt/clothesline-fabric#11, I realized that fabric's network api have no convenience method for mods to opt-out of packet sending to the other side if the other side has no corresponding packet receiver. This causes rejection/client kick from certain servers such as paper. A hook to send only if the packet is identified can ease such conflicts.

commented

I encountered this issue as well here: magneticflux-/fabric-mumblelink-mod#22. There's a corresponding Spigot issue here, which was recently resolved (to some degree at least): SPIGOT-5681.

commented

This is implemented in https://github.com/FabLabsMC/networking-api-v1-draft, a draft repo for #455. Will probably update that pr a bit later with the stuff from the draft repo; you can test out my networking draft for now.

commented

This has been in networking v1, I think?