diff --git a/libs/database/wrapper.js b/libs/database/wrapper.js index c195969..c69cf21 100644 --- a/libs/database/wrapper.js +++ b/libs/database/wrapper.js @@ -247,7 +247,7 @@ export function leaderboardPoints(type, region, start, end) { let flag = skinDB.prepare(`SELECT flag FROM skindata WHERE player = ?`).get(entry.player)?.flag ?? "default" output.push({ rank: rank, global: entry.rank, player: entry.player, points: entry.points, region: entry.region, flag: flag }) - ++i + ++rank } return output }