Skip to content

Commit 45f6f3f

Browse files
committed
Fix KillAura Auto Switch not working properly if you have a weapon in your offhand
closes #4079
1 parent ff646dc commit 45f6f3f

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/meteordevelopment/meteorclient/systems/modules/combat

1 file changed

+2
-2
lines changed

src/main/java/meteordevelopment/meteorclient/systems/modules/combat/KillAura.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ private void onTick(TickEvent.Pre event) {
318318
case All -> stack -> stack.getItem() instanceof AxeItem || stack.isIn(ItemTags.SWORDS) || stack.getItem() instanceof MaceItem || stack.getItem() instanceof TridentItem;
319319
default -> o -> true;
320320
};
321-
FindItemResult weaponResult = InvUtils.findInHotbar(predicate);
321+
FindItemResult weaponResult = InvUtils.find(predicate, 0, 8);
322322

323323
if (shouldShieldBreak()) {
324-
FindItemResult axeResult = InvUtils.findInHotbar(itemStack -> itemStack.getItem() instanceof AxeItem);
324+
FindItemResult axeResult = InvUtils.find(itemStack -> itemStack.getItem() instanceof AxeItem, 0, 8);
325325
if (axeResult.found()) weaponResult = axeResult;
326326
}
327327

0 commit comments

Comments
 (0)