From b8477c3d22f502049132c153ace5af9a8bcfa641 Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 5 May 2022 00:19:40 +0200 Subject: [PATCH] use explicit deserialize --- src/treepuncher/game/tablist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treepuncher/game/tablist.py b/src/treepuncher/game/tablist.py index 287322e..4685835 100644 --- a/src/treepuncher/game/tablist.py +++ b/src/treepuncher/game/tablist.py @@ -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: