diff --git a/src/features/conversion.ts b/src/features/conversion.ts index 476bfb9..97637fa 100644 --- a/src/features/conversion.ts +++ b/src/features/conversion.ts @@ -460,7 +460,9 @@ export function setupPassiveGeneration( conversion.gainResource.value = Decimal.add( conversion.gainResource.value, Decimal.times(currRate, diff).times(Decimal.ceil(unref(conversion.actualGain))) - ).min(unref(processedCap) ?? Decimal.dInf); + ) + .min(unref(processedCap) ?? Decimal.dInf) + .max(conversion.gainResource.value); } }); }