diff --git a/src/core/packet/session.ts b/src/core/packet/session.ts index 3413bc3b..365eafb4 100644 --- a/src/core/packet/session.ts +++ b/src/core/packet/session.ts @@ -31,15 +31,15 @@ export class PacketSession { private newClient(core: NapCatCore): PacketClient { const prefer = core.configLoader.configData.packetBackend; switch (prefer) { - case "native": - return new NativePacketClient(core); - case "frida": - return new wsPacketClient(core); - case "auto": - case undefined: - return this.judgeClient(core); - default: - throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`); + case "native": + return new NativePacketClient(core); + case "frida": + return new wsPacketClient(core); + case "auto": + case undefined: + return this.judgeClient(core); + default: + throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`); } }