From 2bca1f01616a5ba9b9ba7a9ca7aa10569a7f1c1f Mon Sep 17 00:00:00 2001 From: direwolf20 <39863894+Direwolf20-MC@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:40:22 -0400 Subject: [PATCH] Misc Fixes2 --- .../justdirethings/common/blockentities/ExperienceHolderBE.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a6630427..c5c2de85 100644 --- a/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java +++ b/src/main/java/com/direwolf20/justdirethings/common/blockentities/ExperienceHolderBE.java @@ -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