diff options
author | snowleo <schneeleo@gmail.com> | 2012-04-09 17:52:46 +0300 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-04-09 17:52:46 +0300 |
commit | 4c8d0ea2d995cc97ffde6a00d5de206100f22958 (patch) | |
tree | a2a26e5d2426112583a96b1a52d0f0cebad1adfb | |
parent | bb83dcc82873d4931bd3ec2120d8ec3f41f25d6e (diff) | |
download | Essentials-4c8d0ea2d995cc97ffde6a00d5de206100f22958.tar Essentials-4c8d0ea2d995cc97ffde6a00d5de206100f22958.tar.gz Essentials-4c8d0ea2d995cc97ffde6a00d5de206100f22958.tar.lz Essentials-4c8d0ea2d995cc97ffde6a00d5de206100f22958.tar.xz Essentials-4c8d0ea2d995cc97ffde6a00d5de206100f22958.zip |
Should fix some exp math issues
-rw-r--r-- | Essentials/src/com/earth2me/essentials/craftbukkit/SetExpFix.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/craftbukkit/SetExpFix.java b/Essentials/src/com/earth2me/essentials/craftbukkit/SetExpFix.java index 70d15b856..b788fa7ee 100644 --- a/Essentials/src/com/earth2me/essentials/craftbukkit/SetExpFix.java +++ b/Essentials/src/com/earth2me/essentials/craftbukkit/SetExpFix.java @@ -53,7 +53,7 @@ public class SetExpFix //Without this people would be able to use exp and then still sell it. 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(); while (currentLevel > 0) { |