mojira.dev
MC-303283

Standalone Sprites in the Body and Buttons of a Dialog aren't rendered

Description
If there is a sprite in either the body or in a button in a dialog, it won’t show up unless there is some text in the same line as the sprite.

Steps to reproduce the issue
Run each of the following commands in command blocks separately, and observe the difference.
(The second command is the same as the first, but without the periods)

dialog show @p {type:"minecraft:multi_action",title:{sprite:"block/emerald_block"},body:[{type:"minecraft:plain_message",contents:{sprite:"block/iron_block",extra:["."]}},{type:"minecraft:plain_message",contents:[{text:"."},{sprite:"minecraft:block/diamond_block"}]}],actions:[{label:{sprite:"block/gold_block",extra:["."]}}]}
dialog show @p {type:"minecraft:multi_action",title:{sprite:"block/emerald_block"},body:[{type:"minecraft:plain_message",contents:{sprite:"block/iron_block",extra:[""]}},{type:"minecraft:plain_message",contents:[{text:""},{sprite:"minecraft:block/diamond_block"}]}],actions:[{label:{sprite:"block/gold_block",extra:[""]}}]}

Expected Result

Both commands should show all of the sprites

Actual Result

Only the first command shows all of the sprites, because there is text before or after each sprite, whereas in the second command the text is removed, so none of the sprites show.

Linked issues

Attachments

Comments 2

This appears to be a duplicate of MC-301271, which has been fixed in a recent snapshot.

This appears to be a duplicate of MC-301271, which has been fixed in a recent snapshot.

Oh, sorry, I didn’t know it was already reported and fixed. I did look for duplicates before making this report, but I guess I didn’t look well enough.

Also, I wasted so much time on making this report, and it was all for nothing 😭

NiaSwift

(Unassigned)

Unconfirmed

(Unassigned)

1.21.10

Retrieved