Commit a17019a7 authored by 杨一航's avatar 杨一航

fix

parent 2111ae59
...@@ -125,8 +125,11 @@ export class GameServer { ...@@ -125,8 +125,11 @@ export class GameServer {
} }
let sender = this.playerList.find(p => p.uuid == data.uuid); let sender = this.playerList.find(p => p.uuid == data.uuid);
sender.name = data.playerName; if (sender) {
sender.headUrl = data.playerHeadUrl; sender.name = data.playerName;
sender.headUrl = data.playerHeadUrl;
}
if (data.type == "playerInfo") { if (data.type == "playerInfo") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment