When not shifting an encoded item pattern item should let the right click through.
This commit is contained in:
parent
820a6bdbd6
commit
c455ee69b8
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
|
||||||
@Override
|
@Override
|
||||||
public EnumActionResult onItemUseFirst( final EntityPlayer player, final World world, final BlockPos pos, final EnumFacing side, final float hitX, final float hitY, final float hitZ, final EnumHand hand )
|
public EnumActionResult onItemUseFirst( final EntityPlayer player, final World world, final BlockPos pos, final EnumFacing side, final float hitX, final float hitY, final float hitZ, final EnumHand hand )
|
||||||
{
|
{
|
||||||
return this.clearPattern( player.getHeldItemMainhand(), player ) ? EnumActionResult.SUCCESS : EnumActionResult.FAIL;
|
return this.clearPattern( player.getHeldItemMainhand(), player ) ? EnumActionResult.SUCCESS : EnumActionResult.PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean clearPattern( final ItemStack stack, final EntityPlayer player )
|
private boolean clearPattern( final ItemStack stack, final EntityPlayer player )
|
||||||
|
|
Loading…
Reference in a new issue