aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch')
-rw-r--r--Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch b/Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch
new file mode 100644
index 0000000000..c3470e45f8
--- /dev/null
+++ b/Spigot-Server-Patches/0379-Fix-CB-call-to-changed-postToMainThread-method.patch
@@ -0,0 +1,22 @@
+From 77e3bff66143458b16f6ddfb0510d254faecf0c4 Mon Sep 17 00:00:00 2001
+From: Shane Freeder <[email protected]>
+Date: Fri, 10 May 2019 18:38:19 +0100
+Subject: [PATCH] Fix CB call to changed postToMainThread method
+
+
+diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
+index 37b97438c..4a16d6c14 100644
+--- a/src/main/java/net/minecraft/server/PlayerConnection.java
++++ b/src/main/java/net/minecraft/server/PlayerConnection.java
+@@ -283,7 +283,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
+
+ this.networkManager.getClass();
+ // CraftBukkit - Don't wait
+- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
++ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
+ }
+
+ @Override
+--
+2.23.0
+