From 6cb6006fb3fdb2020dfcf367c798c698f2b7a35b Mon Sep 17 00:00:00 2001 From: thegamecracks <61257169+thegamecracks@users.noreply.github.com> Date: Wed, 19 Jun 2024 19:36:59 -0400 Subject: [PATCH] fix: replace remaining references to Player.iterator --- sardine_core/handlers/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sardine_core/handlers/player.py b/sardine_core/handlers/player.py index b61fbb8b..b15335af 100644 --- a/sardine_core/handlers/player.py +++ b/sardine_core/handlers/player.py @@ -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, @@ -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