The bug
If you have the nausea effect while going through a Nether portal will cancel out the animated portal overlay.
To reproduce
Give yourself the nausea effect
/effect give @s nausea 1000 0
Switch to Survival mode
Enter a Nether portal
→ ❌ The portal teleport overlay doesn't show up
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
relates to 1
Attachments
Comments 13
Can confirm this in 1.18.1. Here's a code analysis of this issue.
Code Analysis:
The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.
net.minecraft.client.gui.Gui.java
public class Gui extends GuiComponent {
...
public void render(PoseStack $ps, float $f) {
...
float f2 = Mth.lerp(p_93032_, this.minecraft.player.oPortalTime, this.minecraft.player.portalTime);
if (f2 > 0.0F && !this.minecraft.player.hasEffect(MobEffects.CONFUSION)) {
this.renderPortalOverlay(f2);
}
...
If we look at the above class, we can see that the code specifically checks to see whether or not the player has the CONFUSION
(nausea) effect, before rendering the nether portal overlay to the client. In other words, this means that if the player has the nausea effect, the portal overlay won't be rendered to them.
Related to MC-262939
Can confirm in 20w46a.