mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
fixed sky hoe not tilling a large area
This commit is contained in:
parent
80f313137f
commit
336795421d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue