Skip to content

Commit

Permalink
Fire TagsUpdatedEvent on the client side after joining a server (#1736
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Matyrobbrt authored Dec 19, 2024
1 parent 20c22e6 commit ac7a3bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
new ClientPacketListener(
this.minecraft,
this.connection,
@@ -136,12 +_,19 @@
@@ -136,12 +_,20 @@
this.serverCookies,
this.chatState,
this.customReportDetails,
Expand All @@ -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)
Expand Down

0 comments on commit ac7a3bc

Please sign in to comment.