Skip to content

Commit

Permalink
MultiServer: fix #4 for checksum
Browse files Browse the repository at this point in the history
by Black Sliver
  • Loading branch information
Berserker66 committed Apr 1, 2023
1 parent 280681e commit 36ce863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WebHostLib/customserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ def load(self, room_id: int):
# games package could be dropped from static data once all rooms embed data package
del multidata["datapackage"][game]
else:
data = Utils.restricted_loads(GameDataPackage.get(checksum=game_data["checksum"]).data)
game_data_packages[game] = data
row = GameDataPackage.get(checksum=game_data["checksum"])
if row: # None if rolled on >= 0.3.9 but uploaded to <= 0.3.8. multidata should be complete
game_data_packages[game] = row.data

return self._load(multidata, game_data_packages, True)

Expand Down

0 comments on commit 36ce863

Please sign in to comment.