2019-06-14 10:27:40 +08:00
|
|
|
From 777435ba526984c7880a92d1a44bed52ac4ef1c9 Mon Sep 17 00:00:00 2001
|
2019-05-11 01:42:33 +08:00
|
|
|
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
|
2019-06-06 23:36:57 +08:00
|
|
|
index 4e8b8f49c4..a0b644801a 100644
|
2019-05-11 01:42:33 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2019-05-14 12:17:05 +08:00
|
|
|
@@ -282,7 +282,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
2019-05-11 01:42:33 +08:00
|
|
|
|
|
|
|
this.networkManager.getClass();
|
|
|
|
// CraftBukkit - Don't wait
|
|
|
|
- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
|
|
|
|
+ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|