fixed sky hoe not tilling a large area

This commit is contained in:
Ell 2023-02-21 12:19:23 +01:00
parent 80f313137f
commit 336795421d

View file

@ -71,7 +71,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel {
var offset = context.getClickedPos().offset(x, 0, z); var offset = context.getClickedPos().offset(x, 0, z);
var newResult = new BlockHitResult(context.getClickLocation(), context.getClickedFace(), offset, context.isInside()); var newResult = new BlockHitResult(context.getClickLocation(), context.getClickedFace(), offset, context.isInside());
var newContext = new UseOnContext(context.getPlayer(), context.getHand(), newResult); 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; return success ? InteractionResult.SUCCESS : InteractionResult.PASS;