Implement pausing the factory

This commit is contained in:
thepaperpilot 2022-12-22 09:37:11 -06:00
parent 6d4fbd4dad
commit 87c79080fc

View file

@ -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();