Skip to content

Commit

Permalink
Fix lumberaxe chain break not validating held item (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Jun 21, 2023
1 parent eb13403 commit 5c23209
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/tconstruct/items/tools/LumberAxe.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ public void onWorldTick(TickEvent.WorldTickEvent event) {
if (event.world.provider.dimensionId != world.provider.dimensionId) {
return;
}
if (stack != player.getCurrentEquippedItem()) {
// Player switched held item, we shouldn't proceed furthermore
finish();
return;
}

// setup
int left = blocksPerTick;
Expand Down

0 comments on commit 5c23209

Please sign in to comment.