From 5e36c72679a1687a7cad55116e9c1b90f8e99ffc Mon Sep 17 00:00:00 2001 From: cech12 Date: Mon, 28 Sep 2020 20:11:25 +0200 Subject: [PATCH] add a todo for removing the axe workaround in the chopping hat class --- src/main/java/cech12/usefulhats/item/ChoppingHatItem.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cech12/usefulhats/item/ChoppingHatItem.java b/src/main/java/cech12/usefulhats/item/ChoppingHatItem.java index a5e1d67..7c4b39b 100644 --- a/src/main/java/cech12/usefulhats/item/ChoppingHatItem.java +++ b/src/main/java/cech12/usefulhats/item/ChoppingHatItem.java @@ -49,6 +49,7 @@ protected boolean isToolEffective(Set 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); } }