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:
parent
a3c3e4cbd4
commit
ed607bdc37
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue