mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
Implement pausing the factory
This commit is contained in:
parent
6d4fbd4dad
commit
87c79080fc
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ const factory = createLayer(id, () => {
|
||||||
(window as any).blocks = movingBlocks;
|
(window as any).blocks = movingBlocks;
|
||||||
|
|
||||||
globalBus.on("update", diff => {
|
globalBus.on("update", diff => {
|
||||||
if (!loaded) return;
|
if (!loaded || paused.value) return;
|
||||||
|
|
||||||
const factoryTicks = Decimal.times(tickRate.value, diff).toNumber();
|
const factoryTicks = Decimal.times(tickRate.value, diff).toNumber();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue