use explicit deserialize
This commit is contained in:
parent
2885c3c270
commit
b8477c3d22
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class GameTablist(Scaffold):
|
|||
continue # TODO this happens kinda often but doesn't seem to be an issue?
|
||||
if packet.action == ActionType.ADD_PLAYER.value:
|
||||
record['joinTime'] = datetime.datetime.now()
|
||||
self.tablist[uid] = Player(**record) # TODO have it be a Player type inside packet
|
||||
self.tablist[uid] = Player.deserialize(record) # TODO have it be a Player type inside packet
|
||||
elif packet.action == ActionType.UPDATE_GAMEMODE.value:
|
||||
self.tablist[uid].gamemode = record['gamemode']
|
||||
elif packet.action == ActionType.UPDATE_LATENCY.value:
|
||||
|
|
Loading…
Reference in a new issue