From 8bc873bf29a8ddcf9e5b3dd68c41b7cc72f5601f Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 6 Apr 2026 21:29:19 +0900 Subject: [PATCH] . --- exp_server_ups/instance.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exp_server_ups/instance.ts b/exp_server_ups/instance.ts index e6c9aa5e..3182fd3b 100644 --- a/exp_server_ups/instance.ts +++ b/exp_server_ups/instance.ts @@ -34,7 +34,7 @@ export class InstancePlugin extends BaseInstancePlugin { setInterval() { if (!this.updateInterval) { - this.updateInterval = setInterval(this.updateUps.bind(this), this.instance.config.get("exp_server_ups.update_interval" as any)); + this.updateInterval = setInterval(this.updateUps.bind(this), (this.instance.config.get("exp_server_ups.update_interval" as any) as number)); } } @@ -51,7 +51,7 @@ export class InstancePlugin extends BaseInstancePlugin { if (collected > 0) { const minTick = this.gameTimes[0]; const maxTick = this.gameTimes[collected]; - ups = (maxTick - minTick) / (collected * (this.instance.config.get("exp_server_ups.update_interval" as any) / 1000)); + ups = (maxTick - minTick) / (collected * ((this.instance.config.get("exp_server_ups.update_interval" as any) as number) / 1000)); } try { @@ -61,7 +61,7 @@ export class InstancePlugin extends BaseInstancePlugin { this.logger.error(`Failed to receive new game time: ${error}`); } - if (collected > this.instance.config.get("exp_server_ups.average_interval" as any)) { + if (collected > (this.instance.config.get("exp_server_ups.average_interval" as any) as number)) { this.gameTimes.shift(); } }