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
is duplicated by 29
relates to 1
Attachments
Comments 8
Here's what happens to me:
Chat makes the armor bar look darker, but the armor bar is still in the front
Chat doesn't darken the health bar, and the health bar is in the front
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.
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]
to add to that the chat menu goes back on top as it is supposed to when you have the f3 menu open.