updateplayer 更新
This commit is contained in:
parent
ace0d0cd2a
commit
1fa48ee9cb
@ -72,10 +72,14 @@ export class BattleHandler {
|
||||
}
|
||||
});
|
||||
this._players.delete(oldplayer);
|
||||
if(ph){
|
||||
this._players.set(newplayer, ph);
|
||||
this._playerids.set(aplayerid + '', newplayer);
|
||||
}
|
||||
}
|
||||
if(ph){
|
||||
this._players.set(newplayer, ph);
|
||||
this._playerids.set(aplayerid + '', newplayer);
|
||||
|
||||
if(!ph){
|
||||
this.addPlayer(newplayer);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user