Potential fix for infinite resets bug

This commit is contained in:
thepaperpilot 2022-12-24 22:05:12 -06:00
parent 2dde092baf
commit f96c9c407f

View file

@ -65,7 +65,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
},
visibility: () =>
showIf(Decimal.lt(packedPresents.value, 8e9) && Decimal.lte(remainingSize.value, 0)),
onClick: packingReset.reset
onClick() {
if (unref(this.canClick)) {
packingReset.reset();
}
}
}));
const packingProgress = persistent<DecimalSource>(0);