From 0b2160fe55630caab0bfc4a535aaf4f20ca0644a Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 2 Dec 2024 15:59:27 +0000 Subject: [PATCH] Fix xp orb collection detection properly --- .../clientcommands/mixin/rngevents/ClientLevelMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/ClientLevelMixin.java b/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/ClientLevelMixin.java index 8e8ae18c..b1fe2f49 100644 --- a/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/ClientLevelMixin.java +++ b/src/main/java/net/earthcomputer/clientcommands/mixin/rngevents/ClientLevelMixin.java @@ -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();