From 87c79080fc8a6e92f23917853d0ff37a29fda1ce Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 22 Dec 2022 09:37:11 -0600 Subject: [PATCH] Implement pausing the factory --- src/data/layers/factory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 1f2ed5a..1e78b1c 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -559,7 +559,7 @@ const factory = createLayer(id, () => { (window as any).blocks = movingBlocks; globalBus.on("update", diff => { - if (!loaded) return; + if (!loaded || paused.value) return; const factoryTicks = Decimal.times(tickRate.value, diff).toNumber();