aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-12-17 11:39:40 -0800
committerGitHub <[email protected]>2023-12-17 11:39:40 -0800
commitff26d54ee0b52e338f12c5741487e7712b53104b (patch)
treeb83ce40611022bba7beeca45dc76430c016f7062
parentde04cbced5441dfa9847b02ab28fe7c4b54f054c (diff)
downloadPaper-ff26d54ee0b52e338f12c5741487e7712b53104b.tar.gz
Paper-ff26d54ee0b52e338f12c5741487e7712b53104b.zip
send sound and particle packets immediately even if off main (#10033)
-rw-r--r--patches/server/0297-Optimize-Network-Manager-and-add-advanced-packet-sup.patch8
1 files 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<Packet<?>> {
@@ -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<Packet<?>> {
+@@ -680,4 +764,93 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
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;
+ }
+ }