mojira.dev
MC-256826

Advancement titles that are 0-characters long show a toast with a "second page" that's empty

See also MC-256823; this is about the toast only, while that's about the ability to have 0-character long titles to begin with while it isn't an optional field.

When an advancement has a 0-character long title (via translation string, or via empty text object), the toast will act as if it is a very long title, and show it via 2 "pages", where the first page is "Advancement get", and the second page is straight up empty.

Steps to reproduce:
Follow the steps from MC-256823, but keep your eye on the toast in the top right of the screen.

Expected behavior:
The toast treats it as a short advancement title and only has one page with "Advancement get" and the title (which is empty)

Current behavior:
The toast treats it as a long advancement title, showing "Advancement get", and then fading it out to make room for the "long" title, resulting in an empty toast.

Linked issues

Attachments

Comments 2

Can confirm in 1.21.5:


Steps to reproduce:

1- Install the provided data pack and enable it
2- Run the following command:

/advancement grant @p only toastbug:bug
/advancement grant @p only toastbug:bug

[media]

user-f2760

[Mod] turbo

(Unassigned)

Community Consensus

Platform

Low

Resource Packs, UI

1.19.2, 22w42a, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21.5, 1.21.11

Retrieved