diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 06:27:55 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 06:27:55 +0100 |
commit | 965b185c5c198242f2cbea838476cb7a45db6d78 (patch) | |
tree | 402b425e20c902137dc7e255e99a08219614b729 /src/main/java | |
parent | 8b08696177df412f708cb161972f0dc1d464874f (diff) | |
download | craftbukkit-965b185c5c198242f2cbea838476cb7a45db6d78.tar craftbukkit-965b185c5c198242f2cbea838476cb7a45db6d78.tar.gz craftbukkit-965b185c5c198242f2cbea838476cb7a45db6d78.tar.lz craftbukkit-965b185c5c198242f2cbea838476cb7a45db6d78.tar.xz craftbukkit-965b185c5c198242f2cbea838476cb7a45db6d78.zip |
Setting exp shouldn't add, it should set
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 8076fa08..0be60026 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -402,7 +402,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } public void setExperience(int exp) { - getHandle().d(exp); + getHandle().d(exp - getExperience()); } public int getLevel() { |