From efa2b76ab07e0ad3a328e7e362aaeccae42dfaaa Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:44:21 +0000 Subject: [PATCH] Take the earlier first join time --- packages/lib/src/data/PlayerStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/src/data/PlayerStats.ts b/packages/lib/src/data/PlayerStats.ts index fd306ca3..0f297e8d 100644 --- a/packages/lib/src/data/PlayerStats.ts +++ b/packages/lib/src/data/PlayerStats.ts @@ -96,7 +96,7 @@ export default class PlayerStats { merge(other: PlayerStats) { this.joinCount += other.joinCount; this.onlineTimeMs += other.onlineTimeMs; - if (!this.firstJoinAt || (other.firstJoinAt && other.firstJoinAt > this.firstJoinAt)) { + if (!this.firstJoinAt || (other.firstJoinAt && other.firstJoinAt < this.firstJoinAt)) { this.firstJoinAt = other.firstJoinAt; } if (!this.lastJoinAt || (other.lastJoinAt && other.lastJoinAt > this.lastJoinAt)) {