use of org.quiltmc.qsl.networking.impl.client.ClientPlayNetworkAddon in project quilt-standard-libraries by QuiltMC.
the class ClientPlayNetworkHandlerMixin method initAddon.
@Inject(method = "<init>", at = @At("RETURN"))
private void initAddon(CallbackInfo ci) {
this.addon = new ClientPlayNetworkAddon((ClientPlayNetworkHandler) (Object) this, this.client);
// A bit of a hack but it allows the field above to be set in case someone registers handlers during INIT event which refers to said field
ClientNetworkingImpl.setClientPlayAddon(this.addon);
this.addon.lateInit();
}
Aggregations