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
Open the server list in your client
Add a server with the ip
localhost
Start a server on your computer
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
is duplicated by 3
relates to 2
Attachments
Comments 8
Can confirm in 21w14a.
Can confirm in 21w15a.
Video attached.
Can confirm in 1.18.1.
Can confirm in 1.18.2 and 22w12a.
Can confirm in 1.19.
Can confirm in 1.19.2.
Can confirm for 1.14.