Skip to content

Commit

Permalink
fix deaths/h leaderboard showing wrong stat
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts authored and Dream-Master committed Apr 9, 2024
1 parent d1697d7 commit 3019cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/serverutils/ServerUtilitiesLeaderboards.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static double getDPH(ForgePlayer player) {
double hours = Ticks.get(playTime).hoursd();

if (hours >= 1D) {
return (double) player.stats().writeStat(StatList.damageDealtStat) / hours;
return (double) player.stats().writeStat(StatList.deathsStat) / hours;
}
}

Expand Down

0 comments on commit 3019cf0

Please sign in to comment.