diff --git a/project/src/callbacks/InsuranceCallbacks.ts b/project/src/callbacks/InsuranceCallbacks.ts index 1af24868..59e6a443 100644 --- a/project/src/callbacks/InsuranceCallbacks.ts +++ b/project/src/callbacks/InsuranceCallbacks.ts @@ -52,7 +52,8 @@ export class InsuranceCallbacks implements OnUpdate public async onUpdate(secondsSinceLastRun: number): Promise { - if (secondsSinceLastRun > this.insuranceConfig.runIntervalSeconds) + // People edit the config value to be 0 and break it, force value to no lower than 1 + if (secondsSinceLastRun > Math.max(this.insuranceConfig.runIntervalSeconds, 1)) { this.insuranceController.processReturn(); return true;