Skip to content

Commit

Permalink
Fix HarvestSwordItem applying Tool Rules for Axe multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Choonster committed Nov 16, 2024
1 parent a3115d4 commit cf1548e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit cf1548e

Please sign in to comment.