When not shifting an encoded item pattern item should let the right click through.

This commit is contained in:
Gunther De Wachter 2017-07-02 04:11:26 +02:00
parent 820a6bdbd6
commit c455ee69b8

View file

@ -66,7 +66,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
@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 )
{
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 )