From cf1548e4c69513de7ecc382c59bf68d87a108605 Mon Sep 17 00:00:00 2001 From: Choonster TheMage Date: Sun, 17 Nov 2024 00:04:29 +1100 Subject: [PATCH] Fix HarvestSwordItem applying Tool Rules for Axe multiple times --- .../java/choonster/testmod3/world/item/HarvestSwordItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/choonster/testmod3/world/item/HarvestSwordItem.java b/src/main/java/choonster/testmod3/world/item/HarvestSwordItem.java index 851cdac9..cbd965c3 100644 --- a/src/main/java/choonster/testmod3/world/item/HarvestSwordItem.java +++ b/src/main/java/choonster/testmod3/world/item/HarvestSwordItem.java @@ -94,7 +94,7 @@ private static Tool createToolProperties(final ToolMaterial toolMaterial) { BlockTags.MINEABLE_WITH_HOE, BlockTags.MINEABLE_WITH_PICKAXE, BlockTags.MINEABLE_WITH_SHOVEL - ).map(tag -> Tool.Rule.minesAndDrops(holderGetter.getOrThrow(BlockTags.MINEABLE_WITH_AXE), toolMaterial.speed())); + ).map(tag -> Tool.Rule.minesAndDrops(holderGetter.getOrThrow(tag), toolMaterial.speed())); rules.addAll(minesAndDrops.iterator());