Skip to content

Commit a4d40f3

Browse files
authored
track pausing
1 parent cc7c876 commit a4d40f3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

static/extensions/Gen1x/beat_sync.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,5 +569,15 @@
569569
extensionInstance.onStopAll();
570570
});
571571

572+
if (isPenguinMod) {
573+
runtime.on('RUNTIME_PAUSED', () => {
574+
extensionInstance.stopBeat();
575+
});
576+
577+
runtime.on('RUNTIME_UNPAUSED', () => {
578+
extensionInstance.startBeat();
579+
});
580+
}
581+
572582
Scratch.extensions.register(extensionInstance);
573583
})(Scratch);

0 commit comments

Comments
 (0)