Skip to content

Commit 3b5f9d1

Browse files
authored
Timespinner: Fixed generation error caused by new options system (#2374)
1 parent 0f7ebe3 commit 3b5f9d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

worlds/timespinner/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ class TimespinnerWorld(World):
4949

5050
precalculated_weights: PreCalculatedWeights
5151

52-
def __init__(self, world: MultiWorld, player: int):
53-
super().__init__(world, player)
54-
self.precalculated_weights = PreCalculatedWeights(world, player)
55-
5652
def generate_early(self) -> None:
53+
self.precalculated_weights = PreCalculatedWeights(self.multiworld, self.player)
54+
5755
# in generate_early the start_inventory isnt copied over to precollected_items yet, so we can still modify the options directly
5856
if self.multiworld.start_inventory[self.player].value.pop('Meyef', 0) > 0:
5957
self.multiworld.StartWithMeyef[self.player].value = self.multiworld.StartWithMeyef[self.player].option_true

0 commit comments

Comments
 (0)