From eb663e07621eaa12d0f30cef2eadf975d63dbf9f Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sun, 18 Feb 2024 10:10:09 +0000 Subject: [PATCH] Minor cleanup --- .../fabric/impl/networking/client/ClientPlayNetworkAddon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/impl/networking/client/ClientPlayNetworkAddon.java b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/impl/networking/client/ClientPlayNetworkAddon.java index 047f8bed64..53d0e8d58f 100644 --- a/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/impl/networking/client/ClientPlayNetworkAddon.java +++ b/fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/impl/networking/client/ClientPlayNetworkAddon.java @@ -52,8 +52,8 @@ public ClientPlayNetworkAddon(ClientPlayNetworkHandler handler, MinecraftClient super(ClientNetworkingImpl.PLAY, handler.getConnection(), "ClientPlayNetworkAddon for " + handler.getProfile().getName()); this.handler = handler; this.client = client; - this.context = new ContextImpl(client, this); + // Must register pending channels via lateinit this.registerPendingChannels((ChannelInfoHolder) this.connection, NetworkPhase.PLAY); }