File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/meteordevelopment/meteorclient/systems/modules/combat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments