mojira.dev
MC-64522

Server shows as "Old" in server list while starting

The bug

When you start a server and while the server is starting open or update the server list in your client, "Old" is shown as the the status of the server (untranslated).

How to reproduce

  1. Open the server list in your client

  2. Add a server with the ip localhost

  3. Start a server on your computer

  4. Refresh the server list of your client multiple times

The reason

The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.

The reason why this happens is that the network connection is created before the values for the net.minecraft.network.ServerStatusResponse object of the server are set. If the client pings the server between this period of time, the returned net.minecraft.network.status.server.S00PacketServerInfo packet contains the net.minecraft.network.ServerStatusResponse object with no values set. The public void handleServerInfo(S00PacketServerInfo packetIn) method of the anonymous class based on the net.minecraft.network.status.INetHandlerStatusClient interface created in the net.minecraft.client.network.OldServerPinger class shows then "Old" ("Invalid protocol version" would probably fit better).
Opening the network connection after the server thread was started might make more sense (but I am not sure about this one as I am not very familiar with network managing).

Linked issues

Attachments

Comments 8

Johnibur

Can confirm for 1.14.

Avoma

Can confirm in 21w14a.

Avoma

Can confirm in 21w15a.

Avoma

Video attached.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2 and 22w12a.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

marcono1234

gegy

Confirmed

Low

Networking, Text

client, server, server-list

Minecraft 14w31a, Minecraft 1.8-pre2, Minecraft 1.8.4, Minecraft 1.8.7, Minecraft 15w44b, ..., 22w12a, 1.19, 1.19.2, 1.19.3, 23w06a

23w07a

Retrieved