From ff26d54ee0b52e338f12c5741487e7712b53104b Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sun, 17 Dec 2023 11:39:40 -0800 Subject: [PATCH] send sound and particle packets immediately even if off main (#10033) --- ...mize-Network-Manager-and-add-advanced-packet-sup.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/patches/server/0297-Optimize-Network-Manager-and-add-advanced-packet-sup.patch b/patches/server/0297-Optimize-Network-Manager-and-add-advanced-packet-sup.patch index cbd7df1772..a1d5b6a357 100644 --- a/patches/server/0297-Optimize-Network-Manager-and-add-advanced-packet-sup.patch +++ b/patches/server/0297-Optimize-Network-Manager-and-add-advanced-packet-sup.patch @@ -28,7 +28,7 @@ and then catch exceptions and close if they fire. Part of this commit was authored by: Spottedleaf, sandtechnology diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java -index 25881c890c643ce90bdcda6b094d912bafb0ed75..1931db6936773657bd43b9b16de950cb3e7a2303 100644 +index 25881c890c643ce90bdcda6b094d912bafb0ed75..93d3f29b08c79479c27d3f39e6c799c705e69902 100644 --- a/src/main/java/net/minecraft/network/Connection.java +++ b/src/main/java/net/minecraft/network/Connection.java @@ -84,7 +84,7 @@ public class Connection extends SimpleChannelInboundHandler> { @@ -238,7 +238,7 @@ index 25881c890c643ce90bdcda6b094d912bafb0ed75..1931db6936773657bd43b9b16de950cb // Paper start - Add PlayerConnectionCloseEvent final PacketListener packetListener = this.getPacketListener(); if (packetListener instanceof net.minecraft.server.network.ServerCommonPacketListenerImpl commonPacketListener) { -@@ -680,4 +764,89 @@ public class Connection extends SimpleChannelInboundHandler> { +@@ -680,4 +764,93 @@ public class Connection extends SimpleChannelInboundHandler> { public void setBandwidthLogger(SampleLogger log) { this.bandwidthDebugMonitor = new BandwidthDebugMonitor(log); } @@ -292,6 +292,10 @@ index 25881c890c643ce90bdcda6b094d912bafb0ed75..1931db6936773657bd43b9b16de950cb + packet instanceof net.minecraft.network.protocol.game.ClientboundSetActionBarTextPacket || + packet instanceof net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket || + packet instanceof net.minecraft.network.protocol.game.ClientboundClearTitlesPacket || ++ packet instanceof net.minecraft.network.protocol.game.ClientboundSoundPacket || ++ packet instanceof net.minecraft.network.protocol.game.ClientboundSoundEntityPacket || ++ packet instanceof net.minecraft.network.protocol.game.ClientboundStopSoundPacket || ++ packet instanceof net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket || + packet instanceof net.minecraft.network.protocol.game.ClientboundBossEventPacket; + } + }