add .max(0)s

This commit is contained in:
unsoftcapped3 2022-12-06 19:43:55 -08:00 committed by GitHub
parent 21dda55cb6
commit 009d33383f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,11 +450,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
coal.buildFire.amount.value = Decimal.sub(
coal.buildFire.amount.value,
unref(this.buyable.cost!)
);
).max(0);
coal.activeFires.value = Decimal.sub(
coal.activeFires.value,
unref(this.buyable.cost!)
);
).max(0);
}
},
onPurchase() {