Skip to content

Commit

Permalink
Fix for Mithion#1218
Browse files Browse the repository at this point in the history
  • Loading branch information
DoomFruit committed Sep 12, 2015
1 parent 441732c commit 171c347
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/am2/utility/EntityUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ public static void deductXP(int amount, EntityPlayer player){

player.experience = 0.0F;
player.experienceLevel = 0;
player.experienceTotal = 0;
player.experienceTotal -= amount;
if(player.experienceTotal < 0)
player.experienceTotal = 0;
player.addExperience(newTotal);
}

Expand Down

0 comments on commit 171c347

Please sign in to comment.