mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Should fix some exp math issues
This commit is contained in:
parent
bb83dcc828
commit
4c8d0ea2d9
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class SetExpFix
|
||||||
//Without this people would be able to use exp and then still sell it.
|
//Without this people would be able to use exp and then still sell it.
|
||||||
public static int getTotalExperience(final Player player)
|
public static int getTotalExperience(final Player player)
|
||||||
{
|
{
|
||||||
int exp = (int) (getExpToLevel(player) * player.getExp());
|
int exp = (int)Math.round(getExpToLevel(player) * player.getExp());
|
||||||
int currentLevel = player.getLevel();
|
int currentLevel = player.getLevel();
|
||||||
|
|
||||||
while (currentLevel > 0) {
|
while (currentLevel > 0) {
|
||||||
|
|
Loading…
Reference in a new issue