Fire PlayerConnectionCloseEvent for configuration packet listener

If the player moves to the configuration stage, we also need
to fire the event.
This commit is contained in:
Spottedleaf
2023-09-26 09:20:17 -07:00
parent 68e28c6750
commit ec66a2c91c
2 changed files with 7 additions and 8 deletions

View File

@@ -237,7 +237,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ this.clearPacketQueue(); // Paper - Optimize network
// Paper start - Add PlayerConnectionCloseEvent
final PacketListener packetListener = this.getPacketListener();
if (packetListener instanceof net.minecraft.server.network.ServerGamePacketListenerImpl) {
if (packetListener instanceof net.minecraft.server.network.ServerCommonPacketListenerImpl commonPacketListener) {
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
public void setBandwidthLogger(SampleLogger log) {
this.bandwidthDebugMonitor = new BandwidthDebugMonitor(log);