Skip to content

Commit

Permalink
Update updater.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 27, 2024
1 parent 7646ea3 commit b3b298b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async function updateLastSeen() {
const opNames = new Set(ops.map(op => op.name))
for (const p of lastSeenPlayers.values()) {
const newOnline = opNames.has(p.name)
if (!p.online && newOnline) p.timesVanished++
if (p.online && !newOnline) p.timesVanished++

p.online = newOnline
}
Expand Down

0 comments on commit b3b298b

Please sign in to comment.