Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-93836

Server with same ip use icon of deleted server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w49b, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, 20w07a, 1.19.3, 1.19.4 Release Candidate 3, 1.19.4
    • Confirmed
    • (Unassigned)

      The bug

      When you delete a server from your server list the entry is directly removed from the servers.dat file as well, however if you add a server with the same ip it uses the icon of the deleted server entry. This only seems to happen with the icon, but not with the name nor with the "Server Resource Packs" settings (maybe because they set their values as new values).

      How to reproduce

      1. Create a local server with the provided icon named icon.png in the world folder
      2. Start the server
      3. Client: Add a server entry with the ip localhost and refresh
        The server should now use the icon
      4. Stop the server
      5. Client: Delete the server from your server list
      6. Client: Create a new server entry with the ip localhost
        It should use the icon even though the server was not online

      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 public void removeServerData(int p_78851_1_) method of the net.minecraft.client.multiplayer.ServerList class is not deleting the texture.

      Fixing this probably requires a fix for MC-98707 as well as otherwise if two server with the same IP are listed and one of the is deleted, the other one shows a white image.

      There might be other side effects when having two servers with the same IP.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: