Steps to reproduce: - Have an element (not a compound) in your inventory, in the slot before a block. - If there is a regular item (not an element or BlockItem) before the block, the rendering issue disappears. - Otherwise, the shadow on the block does not appear. - See the screenshot for an example: 
Steps to reproduce: