Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
611a0ee52d
This reverts commit e38eceb42a
.
20 Zeilen
1.0 KiB
Diff
20 Zeilen
1.0 KiB
Diff
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 9eaa4e1caf297c26d49b0e4777cf75a81d6bc9c0..ec3089d49fe85295bddbb2960eaef788a2ae7805 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
@@ -297,7 +297,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
|
|
|
this.networkManager.getClass();
|
|
// CraftBukkit - Don't wait
|
|
- minecraftserver.postToMainThread(networkmanager::handleDisconnection);
|
|
+ minecraftserver.scheduleOnMain(networkmanager::handleDisconnection); // Paper
|
|
}
|
|
|
|
private <T> void a(T t0, Consumer<T> consumer, BiFunction<ITextFilter, T, CompletableFuture<Optional<T>>> bifunction) {
|