From 7e589e23b3d35cb11e01e31c23c63d27f55de364 Mon Sep 17 00:00:00 2001 From: ciniao <4041990@qq.com> Date: Wed, 3 Jan 2024 14:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extends.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extends.ts b/src/extends.ts index ee937d5..bccfa10 100644 --- a/src/extends.ts +++ b/src/extends.ts @@ -333,7 +333,7 @@ ApiCall.prototype.addEventMsg = function (this: ApiCall) { if (Object.keys(this.otherBuff).intersection(Object.keys(msg)).length > 0) this.conn.refreshPower(); break; case 'msg_s2c/LshdChange': - this.conn.lshd[msgKey] && PublicShared.mergeProperty(this.conn.lshd[msgKey], msg); + this.conn?.lshd?.[msgKey] && PublicShared.mergeProperty(this.conn.lshd[msgKey], msg); break; } };