2020-04-22 00:06:30 +02:00
|
|
|
From d9f46969684c3996ce3683e374288454e9af07f0 Mon Sep 17 00:00:00 2001
|
2019-05-10 19:42:33 +02: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
|
2020-04-22 00:06:30 +02:00
|
|
|
index eee96c3a..69133121 100644
|
2019-05-10 19:42:33 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2019-12-12 17:20:43 +01:00
|
|
|
@@ -286,7 +286,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
2019-05-10 19:42:33 +02:00
|
|
|
|
|
|
|
this.networkManager.getClass();
|
|
|
|
// CraftBukkit - Don't wait
|
|
|
|
- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
|
|
|
|
+ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
--
|
2020-04-22 00:06:30 +02:00
|
|
|
2.25.1.windows.1
|
2019-05-10 19:42:33 +02:00
|
|
|
|