From 45d5f1a0384e6a17ee2940bce8f3841e8fe749fb Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 10 Mar 2024 14:09:20 +0800 Subject: [PATCH] =?UTF-8?q?reinit=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/noname/library/element/player.js b/noname/library/element/player.js index 69a02610f..9b223b5ea 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -2510,13 +2510,16 @@ export class Player extends HTMLDivElement { } if (this.name2 == from) { this.name2 = to; + this.skin.name2 = to; } else if (this.name == from || this.name1 == from) { if (this.name1 == from) { this.name1 = to; + this.skin.name = to; } if (!this.isUnseen(1)) { this.name = to; + if (this.skin.name != to) this.skin.name = to; this.sex = info2[0]; } }