mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
Potential fix for infinite resets bug
This commit is contained in:
parent
2dde092baf
commit
f96c9c407f
1 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
},
|
},
|
||||||
visibility: () =>
|
visibility: () =>
|
||||||
showIf(Decimal.lt(packedPresents.value, 8e9) && Decimal.lte(remainingSize.value, 0)),
|
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);
|
const packingProgress = persistent<DecimalSource>(0);
|
||||||
|
|
Loading…
Reference in a new issue