From e784b436914f782bc267e52768088eb961327047 Mon Sep 17 00:00:00 2001 From: zhaodice <63996691+zhaodice@users.noreply.github.com> Date: Sun, 26 Jun 2022 13:24:02 +0800 Subject: [PATCH] Update HandlerPlayerForceExitReq.java --- .../server/packet/recv/HandlerPlayerForceExitReq.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java index 844fa195e..84943757d 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java @@ -12,6 +12,6 @@ public class HandlerPlayerForceExitReq extends PacketHandler { public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { // Client should auto disconnect right now session.send(new BasePacket(PacketOpcodes.PlayerForceExitRsp)); - session.getPlayer().onLogout(); + session.close(); } }