From 965b185c5c198242f2cbea838476cb7a45db6d78 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 15 Sep 2011 06:27:55 +0100 Subject: [PATCH] Setting exp shouldn't add, it should set --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 8076fa0800..0be6002653 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() {