mojira.dev
MC-117637

World is visible for short moment after credits before respawn

The bug

The world is visible for a short moment after the credits but before you have respawned.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.client.gui.GuiWinGame.sendRespawnPacket() resets the currently displayed GUI. But the player is not teleported until it receives the packets from the server.

Suggested would be to not clear the displayed GUI but mark that the player reached the end of the credits and therefor not send multiple respawn packets and not try to scroll further.
However, this might cause problems when the server does not send a packet back for whatever reason.

Attachments

Comments 2

Can confirm in 20w51a.

Fixed in 1.20.5 with the addition of the end and nether portal overlays. During the 'Loading terrain...' phase, the overlay is shown:

[media]

Credits:

[media]

Loading:

[media]

Loaded:

[media]

Marcono1234

(Unassigned)

Confirmed

credits, respawn, return-end-portal

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 3, 1.15.2, 20w06a, 20w51a

1.20.5 Pre-Release 2

Retrieved