Latest SBW snapshots of 0.2.30 introduced a new logic of counting max spawned resources and added a method for it. SBW also added a new field to ItemSpawner which can be used to alter the spawner interval during the game. This PR changes RotatingGenerator to use these new methods and fields to fix synchronization issues which can occur with the latest SBW snapshot.
Latest SBW snapshots of 0.2.30 introduced a new logic of counting max spawned resources and added a method for it. SBW also added a new field to ItemSpawner which can be used to alter the spawner interval during the game. This PR changes RotatingGenerator to use these new methods and fields to fix synchronization issues which can occur with the latest SBW snapshot.