Pass itemstack when determining block data, fixes #3