From 4b167fc938fd231d65c3f61d632a70910cb6fe41 Mon Sep 17 00:00:00 2001 From: Carl Date: Mon, 21 Aug 2023 02:52:43 +0800 Subject: [PATCH] Fix the error that the parameter regionCache of class PacketPlayerLoginRsp is null in game only mode (#2297) --- .../grasscutter/server/packet/send/PacketPlayerLoginRsp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java index 83e101f7e..c134a4544 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java @@ -37,7 +37,7 @@ public class PacketPlayerLoginRsp extends BasePacket { .setGateserverPort(lr(GAME_INFO.accessPort, GAME_INFO.bindPort)) .build(); - var regionCache = + regionCache = QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp.newBuilder() .setRegionInfo(serverRegion) .setClientSecretKey(ByteString.copyFrom(Crypto.DISPATCH_SEED))