Fix wrong message when loading apsave

from doubling received_items that happened when moving from world-based to client-based remote_items
This commit is contained in:
black-sliver 2022-02-05 19:32:40 +01:00 committed by Fabian Dill
parent a3c3e4cbd4
commit ed607bdc37
1 changed files with 3 additions and 2 deletions

View File

@ -442,8 +442,9 @@ class Context:
self.location_checks.update(savedata["location_checks"]) self.location_checks.update(savedata["location_checks"])
if "random_state" in savedata: if "random_state" in savedata:
self.random.setstate(savedata["random_state"]) self.random.setstate(savedata["random_state"])
logging.info(f'Loaded save file with {sum([len(p) for p in self.received_items.values()])} received items ' # count items and slots from lists for item_handling = remote
f'for {len(self.received_items)} players') logging.info(f'Loaded save file with {sum([len(v) for k,v in self.received_items.items() if k[2]])} received items '
f'for {sum(k[2] for k in self.received_items)} players')
# rest # rest