Skip to content

Commit

Permalink
add a todo for removing the axe workaround in the chopping hat class
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Sep 28, 2020
1 parent 60ff7c6 commit 5e36c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/cech12/usefulhats/item/ChoppingHatItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ protected boolean isToolEffective(Set<ToolType> toolTypes, BlockState state) {
return toolTypes.contains(ToolType.AXE) && (state.isToolEffective(ToolType.AXE)
//in 1.16 there is a problem in checking the effective tool for axe tool type & vanilla blocks.
//So, add a diamond axe speed check as work around.
//TODO remove workaround after building against Forge 1.16.3-34.1.1 or later (see PR #7351)
|| (new ItemStack((Items.DIAMOND_AXE)).getDestroySpeed(state)) > 1.0);
}
}

0 comments on commit 5e36c72

Please sign in to comment.