Skip to content

Commit

Permalink
fix wrong switches
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Mar 31, 2024
1 parent c79c301 commit 8f41dfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/melanx/toolswap/ClientToolSwap.java
Expand Up @@ -187,6 +187,10 @@ public static void searchForSwitching(MultiPlayerGameMode multiPlayerGameMode, B
continue;
}

if (!stack.is(toolTypeTag)) {
continue;
}

if (heldItem == stack && ClientConfig.ignoreHarvestLevel.get() && !state.is(Blocks.COBWEB)) {
return;
}
Expand Down

0 comments on commit 8f41dfc

Please sign in to comment.