mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 05:54:43 +01:00
10 lines
681 B
Diff
10 lines
681 B
Diff
--- a/net/minecraft/server/PlayerConnectionUtils.java
|
|
+++ b/net/minecraft/server/PlayerConnectionUtils.java
|
|
@@ -14,6 +14,7 @@
|
|
public static <T extends PacketListener> void ensureMainThread(Packet<T> packet, T t0, IAsyncTaskHandler<?> iasynctaskhandler) throws CancelledPacketHandleException {
|
|
if (!iasynctaskhandler.isMainThread()) {
|
|
iasynctaskhandler.execute(() -> {
|
|
+ if (MinecraftServer.getServer().hasStopped() || (t0 instanceof PlayerConnection && ((PlayerConnection) t0).processedDisconnect)) return; // CraftBukkit, MC-142590
|
|
if (t0.a().isConnected()) {
|
|
packet.a(t0);
|
|
} else {
|