From 8683f2dbb032f9f402dc3ffad4e82c89773819fb Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Thu, 5 Oct 2017 03:39:51 +0100 Subject: [PATCH] rectify comment derp somebody just to point out --- .../0243-handle-PacketPlayInKeepAlive-async.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Spigot-Server-Patches/0243-handle-PacketPlayInKeepAlive-async.patch b/Spigot-Server-Patches/0243-handle-PacketPlayInKeepAlive-async.patch index b17ed3a6c0..7cc828bd37 100644 --- a/Spigot-Server-Patches/0243-handle-PacketPlayInKeepAlive-async.patch +++ b/Spigot-Server-Patches/0243-handle-PacketPlayInKeepAlive-async.patch @@ -1,4 +1,4 @@ -From ba1fd1fc65bec591a26a28ec246bfc10b3c5a438 Mon Sep 17 00:00:00 2001 +From b306e787ea9f5f206aca49062ecf8ce30b2d81db Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Thu, 5 Oct 2017 01:54:07 +0100 Subject: [PATCH] handle PacketPlayInKeepAlive async @@ -12,7 +12,7 @@ disconnection to the main thread, but leave the actual processing of the packet on the main thread. diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index d8f9a093b..eac4beb56 100644 +index d8f9a093b..f60f21fd2 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -2225,14 +2225,18 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { @@ -20,7 +20,7 @@ index d8f9a093b..eac4beb56 100644 public void a(PacketPlayInKeepAlive packetplayinkeepalive) { - PlayerConnectionUtils.ensureMainThread(packetplayinkeepalive, this, this.player.x()); // CraftBukkit -+ //PlayerConnectionUtils.ensureMainThread(packetplayinkeepalive, this, this.player.x()); // CraftBukkit // Paper - Keep this on the main thread ++ //PlayerConnectionUtils.ensureMainThread(packetplayinkeepalive, this, this.player.x()); // CraftBukkit // Paper - This shouldn't be on the main thread if (this.g && packetplayinkeepalive.a() == this.h) { int i = (int) (this.d() - this.f);