aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch')
-rw-r--r--Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch b/Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch
new file mode 100644
index 0000000000..9d2ee3f627
--- /dev/null
+++ b/Spigot-Server-Patches-Unmapped/0347-Fix-CB-call-to-changed-postToMainThread-method.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 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/network/PlayerConnection.java b/src/main/java/net/minecraft/server/network/PlayerConnection.java
+index 02ae07db49d3793c0cc40ebe55cdc6b383f9b2e3..d84d87b0dd01b4d67e55f1b445928285c45a08ca 100644
+--- a/src/main/java/net/minecraft/server/network/PlayerConnection.java
++++ b/src/main/java/net/minecraft/server/network/PlayerConnection.java
+@@ -445,7 +445,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
+
+ this.networkManager.getClass();
+ // CraftBukkit - Don't wait
+- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
++ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
+ }
+
+ private <T> void a(T t0, Consumer<T> consumer, BiFunction<ITextFilter, T, CompletableFuture<Optional<T>>> bifunction) {