mojira.dev
MC-89996

hoverEvent changes lighting for displayed block of minecart and end crystal

The bug

It seems that whenever the game shows the text of an hoverEvent (caused by /tellraw, hovering over an item in the inventory...) it changes the lighting of entities.

Affected entities

  • Displayed block of minecarts (darkens)

  • Ender crystal (brightens)

How to reproduce

  1. Place a minecart displaying a block:

    Example command

    /summon minecart ~ ~1 ~ {DisplayTile:"minecraft:quartz_block",CustomDisplayTile:1b,DisplayOffset:16}
  2. Stand in front of it (South direction; +Z) and look at it (looking North; -Z)

  3. Use the following command and hover over the text:

    Example command

    /tellraw @a {"text":"","extra":[{"text":"Hover over this text","color":"white","hoverEvent":{"action":"show_text","value":"You are hovering over this text"}}]}

    → You should see that the block being displayed darkens when you are hovering over the message.

Code analysis

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

It looks like the method net.minecraft.client.gui.GuiScreen.drawHoveringText(List<String>, int, int) which calls the method net.minecraft.client.renderer.GlStateManager.enableRescaleNormal() is causing this.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media]
kumasasa

Fixed between 15w42 and 15w45a

marcono1234

Still happens in 15w46a

marcono1234

Please reopen

kumasasa

Cannot reproduce in 15w46a, see screenshots.

migrated

Confirmed not fixed.

marcono1234

Could be graphics card depending? @unknown and I both have a graphics card from ATI, whereas @unknown has one from NVIDIA

[Mod]Les3awe

Also affect :
GPU : NVIDIA GeForce GTX 650
Drivers : GeForce 359.00

[Mod]Les3awe

Can confirm.

[Mod]Les3awe

Also affect the Ender Crystal.

[Mod]Les3awe

Confirmed for 15w50a

[Mod]Les3awe

Confirmed for 1.9.3-pre2

[Mod]Les3awe

Confirmed for 1.9.3-pre3

[Mod]Les3awe

This issue has been fixed in 19w40a.

[media]

marcono1234

(Unassigned)

Confirmed

(Unassigned)

hoverEvent, hovering, item-description, minecart

Minecraft 15w41b, Minecraft 15w46a, Minecraft 15w47c, Minecraft 15w50a, Minecraft 16w04a, ..., Minecraft 16w39c, Minecraft 1.11, Minecraft 1.12, Minecraft 1.12.1, Minecraft 18w11a

19w40a

Retrieved