2019-02-03 04:23:04 +01:00
|
|
|
--- a/net/minecraft/server/PlayerConnectionUtils.java
|
|
|
|
+++ b/net/minecraft/server/PlayerConnectionUtils.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -9,6 +9,7 @@
|
|
|
|
public static <T extends PacketListener> void ensureMainThread(Packet<T> packet, T t0, IAsyncTaskHandler<?> iasynctaskhandler) throws CancelledPacketHandleException {
|
2019-02-03 04:23:04 +01:00
|
|
|
if (!iasynctaskhandler.isMainThread()) {
|
2019-04-23 04:00:00 +02:00
|
|
|
iasynctaskhandler.execute(() -> {
|
2019-02-03 04:23:04 +01:00
|
|
|
+ if (t0 instanceof PlayerConnection && ((PlayerConnection) t0).processedDisconnect) return; // CraftBukkit
|
|
|
|
packet.a(t0);
|
|
|
|
});
|
|
|
|
throw CancelledPacketHandleException.INSTANCE;
|