Skip to content

Commit

Permalink
Fix xp orb collection detection properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Dec 2, 2024
1 parent e2247d9 commit 0b2160f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void onRemoveEntity(int entityId, Entity.RemovalReason reason, CallbackI
if (entity instanceof ExperienceOrb) {
LocalPlayer player = Minecraft.getInstance().player;
assert player != null;
if (player.getBoundingBox().expandTowards(1.25, 0.75, 1.25).intersects(entity.getBoundingBox())) {
if (player.getBoundingBox().inflate(1.25, 0.75, 1.25).intersects(entity.getBoundingBox())) {
PlayerRandCracker.onXpOrb();
if (Arrays.stream(EquipmentSlot.values()).anyMatch(slot -> couldMendingRepair(player.getItemBySlot(slot)))) {
PlayerRandCracker.onMending();
Expand Down

0 comments on commit 0b2160f

Please sign in to comment.