aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0288-Add-PlayerConnectionCloseEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0288-Add-PlayerConnectionCloseEvent.patch')
-rw-r--r--patches/server/0288-Add-PlayerConnectionCloseEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0288-Add-PlayerConnectionCloseEvent.patch b/patches/server/0288-Add-PlayerConnectionCloseEvent.patch
index 48e9a3bb2a..78296cb243 100644
--- a/patches/server/0288-Add-PlayerConnectionCloseEvent.patch
+++ b/patches/server/0288-Add-PlayerConnectionCloseEvent.patch
@@ -39,10 +39,10 @@ public net.minecraft.server.network.ServerLoginPacketListenerImpl state
public net.minecraft.server.network.ServerLoginPacketListenerImpl gameProfile
diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java
-index 410a174ae444a657cc6e753ac4f57eeece2e9365..38b3934b4a81972285c1c2bd0297c4458aa08e41 100644
+index f5106ed464d496420ac575b09d6c9a7dfeb87bec..b293ac99e436b02c9ef30994a394bcc53ebbf2f9 100644
--- a/src/main/java/net/minecraft/network/Connection.java
+++ b/src/main/java/net/minecraft/network/Connection.java
-@@ -493,6 +493,26 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
+@@ -509,6 +509,26 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
this.getPacketListener().onDisconnect(Component.translatable("multiplayer.disconnect.generic"));
}
this.queue.clear(); // Free up packet queue.