diff --git a/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java b/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java index b4f172e9..d9af263b 100644 --- a/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java +++ b/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java @@ -55,6 +55,7 @@ public void storeExp(Player player, int levelChange) { int totalExp = ExperienceUtils.getPlayerTotalExperience(player); this.exp += totalExp; player.giveExperiencePoints(-totalExp); // Removes all levels + player.giveExperienceLevels(-1); //Handles dangling Floating Point Math (RAGE!) Consider it a tax on storing exp :) } else if (levelChange > 0) { // Handle fractional progress first, if the player is in the middle of a level int expInCurrentLevel = (int) (player.experienceProgress * player.getXpNeededForNextLevel());