mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 01:47:42 +01:00
11 lines
624 B
Diff
11 lines
624 B
Diff
--- a/net/minecraft/server/PlayerConnectionUtils.java
|
|
+++ b/net/minecraft/server/PlayerConnectionUtils.java
|
|
@@ -9,6 +9,7 @@
|
|
public static <T extends PacketListener> void ensureMainThread(Packet<T> packet, T t0, IAsyncTaskHandler<?> iasynctaskhandler) throws CancelledPacketHandleException {
|
|
if (!iasynctaskhandler.isMainThread()) {
|
|
iasynctaskhandler.execute(() -> {
|
|
+ if (t0 instanceof PlayerConnection && ((PlayerConnection) t0).processedDisconnect) return; // CraftBukkit
|
|
packet.a(t0);
|
|
});
|
|
throw CancelledPacketHandleException.INSTANCE;
|