mojira.dev
MC-96571

Click & Hover event buttons are offset

Steps to replicate:
1) Run the following command in snapshot 16w05a.

/tellraw @p ["",{"text":"\n[1]\n","color":"red","bold":true,"clickEvent":{"action":"run_command","value":"/say 1"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"HOVER1"}]}}},{"text":"\n[2]\n","color":"red","bold":true,"clickEvent":{"action":"run_command","value":"/say 2"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"HOVER2"}]}}}]

2) Hover over "[1]" and "[2]" to see how the hoverevent only appears when your mouse is on the text. Same goes for click-event.

3) Run the same command in snapshot 16w05b and you will notice that the hover and click events are offset by one line and you can't even click the text anymore. (See picture in the attachment)

Linked issues

Attachments

Comments 27

Not sure if it's important to mention, but the offset of hoverEvent does not occur in written books.
I suspect it might be the recent change of the chat size that caused it?

Fixed for me in 16w06a.

Definitely not fixed for me in 16w06a. Also, related to MC-89253.

If already, also remove 16w06a from the fix versions since it's definitely not fixed in it.

17 more comments

@unknown At least in a previous version (directly after bug got resolved as "fixed") we tested that Comment by Spake Miner asking about it and SkylinerW said he got the same chat settings }=/

Unless that got changed in pre-2 it doesn't seem to be the chat settings..
I also thought maybe a resourcepack/different font could cause that, but Spake also didn't have a pack active, he was on default.

Interesting. the demo command works, however in this map the click and hover events are still broken.

@unknown I haven't tested that map (got already so few time), which version does the map run under?
Maybe Maki inserted wrong commands, or "outdated" ones that worked in a previous MC version?

Edit: Going through the comments of the map, there's you and a reply to you from mai };]

elyisgreat : This is amazing ^^ Why does it only work in 16w04a?

McMakistein Because of a bug that breaks tellraw messages. 😛
You can vote for it here: https://bugs.mojang.com/browse/MC-96571

didn't notice it's his bugpost here }xD

seems to be fixed in pre-release 3.

Maki Karner

(Unassigned)

Community Consensus

Minecraft 16w05b, Minecraft 16w06a

Minecraft 16w06a, Minecraft 1.9 Pre-Release 3

Retrieved