Skip to content

Commit

Permalink
Fixed AutoTool selecting wrong slot
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrannus00 authored and tyrannus00 committed Jun 13, 2023
1 parent b9e0f94 commit 49f2f09
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ public static FindItemResult findFastestTool(BlockState state) {

for (int i = 0; i < 9; i++) {
ItemStack stack = mc.player.getInventory().getStack(i);
if (!stack.isSuitableFor(state)) {
continue;
}
if (!stack.isSuitableFor(state)) continue;

float score = stack.getMiningSpeedMultiplier(state);
if (score > bestScore) {
Expand Down

0 comments on commit 49f2f09

Please sign in to comment.