mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Revert "Don't flush packet queue off main thread"
This reverts commit e3105bc57a
.
Sadly not gonna work due to server pings
This commit is contained in:
parent
e3105bc57a
commit
3e4fec905c
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ With further contributions from
|
|||
Co-Authored-by: Spottedleaf <spottedleaf@spottedleaf.dev>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
index b1dededc15..07e3ddb6e9 100644
|
||||
index b1dededc15..e966b6edcc 100644
|
||||
--- a/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
+++ b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||
@@ -0,0 +0,0 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
|
@ -73,7 +73,7 @@ index b1dededc15..07e3ddb6e9 100644
|
|||
+
|
||||
+ this.packetQueue.addAll(packets); // atomic
|
||||
+ }
|
||||
+ if (MCUtil.isMainThread()) this.sendPacketQueue();
|
||||
+ this.sendPacketQueue(); // ensure only one flush call is made
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue