Fix level being 0 if no stats
This commit is contained in:
@@ -105,7 +105,7 @@ public static class Tools
|
|||||||
|
|
||||||
double percentDone = totalXpForLevel == 0 ? 0.0 : (double)currentXpInLevel / (double)totalXpForLevel * 100.0;
|
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)
|
public static string FormatHumanTime(long unixTimestamp)
|
||||||
|
|||||||
Reference in New Issue
Block a user