diff --git a/BaseClasses.py b/BaseClasses.py index 710a267e52bf..e2e9d7dcb517 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -114,9 +114,9 @@ def extend(self, regions: Iterable[Region]): self.region_cache[region.player][region.name] = region def add_group(self, new_id: int): - self.region_cache.update({new_id: {}}) - self.entrance_cache.update({new_id: {}}) - self.location_cache.update({new_id: {}}) + self.region_cache[new_id] = {} + self.entrance_cache[new_id] = {} + self.location_cache[new_id] = {} def __iter__(self) -> Iterator[Region]: for regions in self.region_cache.values():