From ac7a3bc021d604509763dd8d310aefc8fc4a4039 Mon Sep 17 00:00:00 2001 From: Matyrobbrt <65940752+Matyrobbrt@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:30:38 +0200 Subject: [PATCH] Fire `TagsUpdatedEvent` on the client side after joining a server (#1736) --- .../ClientConfigurationPacketListenerImpl.java.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/net/minecraft/client/multiplayer/ClientConfigurationPacketListenerImpl.java.patch b/patches/net/minecraft/client/multiplayer/ClientConfigurationPacketListenerImpl.java.patch index d26216aa13c..5423b267ba3 100644 --- a/patches/net/minecraft/client/multiplayer/ClientConfigurationPacketListenerImpl.java.patch +++ b/patches/net/minecraft/client/multiplayer/ClientConfigurationPacketListenerImpl.java.patch @@ -31,7 +31,7 @@ new ClientPacketListener( this.minecraft, this.connection, -@@ -136,12 +_,19 @@ +@@ -136,12 +_,20 @@ this.serverCookies, this.chatState, this.customReportDetails, @@ -41,6 +41,7 @@ ) ) ); ++ net.neoforged.neoforge.common.NeoForge.EVENT_BUS.post(new net.neoforged.neoforge.event.TagsUpdatedEvent(registryaccess$frozen, true, this.connection.isMemoryConnection())); + // Packets can only be sent after the outbound protocol is set up again + if (!this.initializedConnection && this.connectionType.isOther()) { + // Neo: Fallback detection for servers with a delayed brand payload (BungeeCord)