From c1f6741c754c20181bb0d2df750febeacf4597d1 Mon Sep 17 00:00:00 2001 From: circle-gon <97845741+circle-gon@users.noreply.github.com> Date: Fri, 23 Dec 2022 09:28:14 -0500 Subject: [PATCH] fixes computed inputs/outputs not actually checking properly --- 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 0eeda6f..1884ca7 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -1572,7 +1572,7 @@ const factory = createLayer(id, () => { const compData = components.value[x + "x" + y] as FactoryComponentProcessor; if (factoryBaseData.inputs !== undefined) { for (const [res, val] of Object.entries(factoryBaseData.inputs)) - if ((compData.inputStock?.[res as ResourceNames] ?? 0) < val.amount) + if ((compData.inputStock?.[res as ResourceNames] ?? 0) < unref(val.amount)) return false; } if (factoryBaseData.outputs !== undefined) {