From 2fad669aa9cadd0007133a9db19bd30e976889fd Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 14 Jul 2024 17:33:14 +0800 Subject: [PATCH] fix: try fix issue #305 --- .../component/player/EntityPlayerNetworkComponentImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Allay-Server/src/main/java/org/allaymc/server/entity/component/player/EntityPlayerNetworkComponentImpl.java b/Allay-Server/src/main/java/org/allaymc/server/entity/component/player/EntityPlayerNetworkComponentImpl.java index 2cb8775ac..728a30baa 100644 --- a/Allay-Server/src/main/java/org/allaymc/server/entity/component/player/EntityPlayerNetworkComponentImpl.java +++ b/Allay-Server/src/main/java/org/allaymc/server/entity/component/player/EntityPlayerNetworkComponentImpl.java @@ -122,6 +122,7 @@ public void handleDisconnect() { // cheaters will be able to create a lot of fake clients and make the server OOM onDisconnect(); server.onDisconnect(player, disconnectReason); + disconnectReason = null; } }