Setting exp shouldn't add, it should set

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-09-15 06:27:55 +01:00
parent 4f4400970b
commit e75180213c

View File

@ -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() {