Multiserver: provide compat for 0.2.3 and somewhat older multidata

This commit is contained in:
Fabian Dill 2022-02-19 17:50:56 +01:00
parent 919223cd2f
commit 71ea8d7148
1 changed files with 5 additions and 1 deletions

View File

@ -319,7 +319,11 @@ class Context:
SlotType(int(bool(locations))))
for slot, locations in self.locations.items()
}
# locations may need converting
for slot, locations in self.locations.items():
for location, item_data in locations.items():
if len(item_data) < 3:
locations[location] = (*item_data, 0)
# declare slots that aren't players as done
for slot, slot_info in self.slot_info.items():
if slot_info.type.always_goal: