mojira.dev
MC-183329

Nether portal teleport overlay does not show up if the player has the nausea effect

The bug

If you have the nausea effect while going through a Nether portal will cancel out the animated portal overlay.

To reproduce

  1. Give yourself the nausea effect

    /effect give @s nausea 1000 0
  2. Switch to Survival mode

  3. 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

Attachments

Comments 13

Can confirm in 20w46a.

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w06a.

3 more comments

Can confirm in 1.17.1.

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.

Can confirm in 1.18.2 and 22w18a.

Can confirm in 1.19.2.

Raymond Vallejo

gegy

Confirmed

Platform

Low

Rendering

rendering

20w19a, 1.16.2, 1.16.4, 20w46a, 20w51a, ..., 1.20.1, 23w33a, 1.20.6, 24w21b, 1.21

25w02a

Retrieved