2019-08-19 07:40:04 +08:00
|
|
|
From 4248f97eb65fef4cc66def1ab94ce98b5c26d154 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-08-06 00:35:40 +08:00
|
|
|
index 7680b88024..4187ba05bd 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-07-20 12:01:24 +08:00
|
|
|
@@ -283,7 +283,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
|
|
|
|
--
|
2019-08-19 07:40:04 +08:00
|
|
|
2.22.1
|
2019-05-11 01:42:33 +08:00
|
|
|
|