2019-08-05 16:35:40 +00:00
|
|
|
From ac0590e2d5af6b8fa96a15894b434ddc7a3458d4 Mon Sep 17 00:00:00 2001
|
2019-05-10 17:42:33 +00: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-05 16:35:40 +00:00
|
|
|
index 7680b88024..4187ba05bd 100644
|
2019-05-10 17:42:33 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2019-07-20 04:01:24 +00:00
|
|
|
@@ -283,7 +283,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
2019-05-10 17:42:33 +00:00
|
|
|
|
|
|
|
this.networkManager.getClass();
|
|
|
|
// CraftBukkit - Don't wait
|
|
|
|
- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
|
|
|
|
+ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
--
|
2019-06-25 04:14:30 +00:00
|
|
|
2.22.0
|
2019-05-10 17:42:33 +00:00
|
|
|
|