mojira.dev
MC-179839

Chat text renders behind the armor bar

Put the summary of the bug you're having here

What I expected to happen was...:
The chat would behave normally.

What actually happened was...:
The chat rendered behind the armor bar

Steps to Reproduce:
1. Say something in chat
2. ...
3. ...

Linked issues

MC-179843 Text appears behind armor HUD Resolved MC-179857 Long chat messages disappear behind armor indicators Resolved MC-179879 armor icons interfere with visibility of text Resolved MC-179884 Armor Bar is hiding the chat Resolved MC-179937 Armor bar covers player chat Resolved

Attachments

Comments 8

to add to that the chat menu goes back on top as it is supposed to when you have the f3 menu open.

Zaid Al-Kazemi

Here's what happens to me:

  1. Chat makes the armor bar look darker, but the armor bar is still in the front

  2. Chat doesn't darken the health bar, and the health bar is in the front

  3. When the F3 menu is up, chat darkens the health bar and the health is still in the front

Oh my thank mojang for that vector3f 0.01 pose stack multiplication

This apparently hides some characters behind f3 as well. When the characters in chat hud has bit overlap with that from f3 menu, the chat hud loses its bits.

I've tested a mixin in a fabric mod and apparently that fixes the issue.
Proof: https://bugs.mojang.com/secure/attachment/285478/2020-04-23_02.59.45.png
(Released under public domain, feel free to take without crediting me)

@Mixin(ChatHud.class)
public abstract class ChatHudMixin {

	@Redirect(method = "render(Lnet/minecraft/client/util/math/MatrixStack;I)V",
			at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/math/MatrixStack;translate(DDD)V"))
	private void redirectMatrixStackTranslate(MatrixStack stack, double x, double y, double z) {
		stack.translate(x, y, -z); // 0, 0, -(-100)
	}
}

So in ChatComponent.void render(com.mojang.blaze3d.vertex.PoseStack,int) method, you don't do poseStack translate -100 after push, you do translate 100 instead. It is a bug with a negative sign.

Command Blocker

I've noticed that when I have an item in my off-hand that is not a tool, weapon, or shield that the chat is fixed while I am holding the item. I didn't test it for the F3 debug screen, just for the in-game chat.

[media]

It STILL happens!

Not all of us are able to edit the Minecraft code! Mojang, please fix it!

@unknown - Please check if you're running the latest version of the game. There haven't been any new reports of this issue occurring in months.

Jourdaine L. Edwards

boq

Confirmed

Very Important

Rendering

20w17a

20w18a

Retrieved