Skip to content

Commit

Permalink
fix: replace remaining references to Player.iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed Jun 19, 2024
1 parent cba782b commit 6cb6006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sardine_core/handlers/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_new_period(self, pattern: PatternInformation) -> Number:
"""Get period value for the current cycle"""
for message in pattern.sender.pattern_reduce(
{"period": pattern.period},
self.iterator,
self.runner.iter,
pattern.divisor,
pattern.rate,
# use_divisor_to_skip=False,
Expand Down Expand Up @@ -206,7 +206,7 @@ def push(self, pattern: Optional[PatternInformation]):
return self.env.scheduler.stop_runner(self.runner)
elif not self.runner.is_running():
# Assume we are queuing the first state
self.iterator = 0
self.runner.iter = 0
self.runner.reset_states()

# Forcibly reset the interval shift back to 0 to make sure
Expand Down

0 comments on commit 6cb6006

Please sign in to comment.