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