diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index a07cb3a..edbb7b2 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -1117,6 +1117,9 @@ const layer = createLayer(id, () => { )), canPurchase(): boolean { + if (Decimal.gte(schools.amount.value, 3) && !main.days[advancedDay - 1].opened.value) { + return false; + } return ( schoolCost.value.wood.lte(trees.logs.value) && schoolCost.value.coal.lte(coal.coal.value) &&