Use null socket when creating player data from JSON.
This commit is contained in:
parent
00d2262663
commit
48840ffdec
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ export class Player {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
public static fromJSON(data: datastorePlayer, socket: Socket): Player {
|
public static fromJSON(data: datastorePlayer): Player {
|
||||||
let player = new this(data.name, socket, data.host);
|
let player = new this(data.name, null, data.host);
|
||||||
player.role = data.role;
|
player.role = data.role;
|
||||||
player.team = data.team;
|
player.team = data.team;
|
||||||
return player;
|
return player;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue