Fix level being 0 if no stats

This commit is contained in:
2026-02-10 19:20:17 -07:00
parent 5db09392e8
commit 6465658b99

View File

@@ -105,7 +105,7 @@ public static class Tools
double percentDone = totalXpForLevel == 0 ? 0.0 : (double)currentXpInLevel / (double)totalXpForLevel * 100.0;
return (totalXp, flooredLevel, currentXpInLevel, totalXpForLevel, percentDone);
return (totalXp, flooredLevel + 1, currentXpInLevel, totalXpForLevel, percentDone);
}
public static string FormatHumanTime(long unixTimestamp)