Non-trivial blocks on the Achievements screen/Advancement tabs are rendered in the wrong order
Resolved
Fixed
16
With advancements only items in tabs are affected.
The backside of the wither skeleton skull for the The Beginning? achievement on the achievement screen is rendered in front of the others, see attached screenshot. Also affects the Beaconator icon.
To reproduce, run /achievement give * @p and look at the achievements in question.
Also affects custom models for other blocks, per MC-61579 and MC-85134.
I hadn't gotten around to updating my RP for the new format yet, so I didn't have an easy way to check for a while.
Note: I thought it had been mentioned somewhere other than the title, but it no longer affects things in the body of the advancement screen, only on its tabs.
After some researching in the FabricMC Discord server (thanks to Soren for the fix), enabling depth testing before drawing the icon seems to fix this bug.
The icon is drawn in AdvancementTabType.drawIcon(), which is called by AdvancementTreeWidget.drawIcon(). Wrapping the call in AdvancementTreeWidget with GlStateManager.enableDepthTest() and GlStateManager.disableDepthTest() fixed the bug.
Confirmed for 1.8pre2