13
0
geforkt von Mirrors/Paper

SPIGOT-5477: Server not shutting down

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-01-12 10:50:22 +11:00
Ursprung e0d3951ff9
Commit 420c962ceb

Datei anzeigen

@ -8,3 +8,14 @@
if (t0.a().isConnected()) { if (t0.a().isConnected()) {
packet.a(t0); packet.a(t0);
} else { } else {
@@ -23,5 +24,10 @@
});
throw CancelledPacketHandleException.INSTANCE;
}
+ // CraftBukkit start - SPIGOT-5477, MC-142590
+ else if (MinecraftServer.getServer().hasStopped() || (t0 instanceof PlayerConnection && ((PlayerConnection) t0).processedDisconnect)) {
+ throw CancelledPacketHandleException.INSTANCE;
+ }
+ // CraftBukkit end
}
}