Skip to content

Commit

Permalink
Misc Fixes2
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Sep 13, 2024
1 parent 47fba89 commit 2bca1f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void storeExp(Player player, int levelChange) {
int expInCurrentLevel = (int) (player.experienceProgress * player.getXpNeededForNextLevel());

// If the player has partial progress within the current level, remove that first
if (expInCurrentLevel > 0) {
if (player.experienceProgress > 0.0f) {
int expRemoved = ExperienceUtils.removePoints(player, expInCurrentLevel);
this.exp += expRemoved;
levelChange--; // We've already removed part of a level
Expand Down

0 comments on commit 2bca1f0

Please sign in to comment.