aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0355-Fix-CB-call-to-changed-postToMainThread-method.patch
blob: d128cf841e8f074216ef9979c2cb1d1def5572cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com>
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 c03ddd05032c75bf723bcdc12d37cc3dbfebc9cc..62a0db6c08047be4ab28f5c23f4ae12694cf003f 100644
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
@@ -285,7 +285,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
 
         this.networkManager.getClass();
         // CraftBukkit - Don't wait
-        minecraftserver.postToMainThread(networkmanager::handleDisconnection);
+        minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
     }
 
     @Override