From 336795421d328a2e4d0946592f85d21c5c10cc91 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 21 Feb 2023 12:19:23 +0100 Subject: [PATCH] fixed sky hoe not tilling a large area --- src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java index 485aad95..35cd87e7 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java @@ -71,7 +71,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel { var offset = context.getClickedPos().offset(x, 0, z); var newResult = new BlockHitResult(context.getClickLocation(), context.getClickedFace(), offset, context.isInside()); var newContext = new UseOnContext(context.getPlayer(), context.getHand(), newResult); - success |= super.useOn(newContext) == InteractionResult.SUCCESS; + success |= super.useOn(newContext).consumesAction(); } } return success ? InteractionResult.SUCCESS : InteractionResult.PASS;