mojira.dev
MC-298520

Items in slots now render behind the container title, mismatching 1.21.5 behavior

Due to ui rendering refactors, items in container slots render behind container title text instead of in front.
While this isn’t an issue in vanilla (slots and text never overlap), custom resource packs and servers commonly use oversized fonts as background texture to create custom uis.
This issue persist across multiple container types (likely all that use common method for rendering labels).

After tinkering a bit with the code, one way to approximate (through not perfectly) the ordering / look to one from 1.21.5 requires moving invocation of the renderLabels method within AbstractContainerScreen#renderContents to happen before right renderSlots instead of after (assuming it still happens after calling renderSlotHighlightBack, it will be closer in looks to 1.21.5, as the back highlight wasn’t visible).

Linked issues

Attachments

Comments 0

No comments.

Patbox

Timur Nazarov

Plausible

Platform

Very Important

Rendering, UI

1.21.6 Pre-Release 2

1.21.6 Pre-Release 3

Retrieved