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

Having a server entry with same name and IP multiple times in server list always changes resource pack settings for first server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13.1, 1.16.5
    • Confirmed
    • (Unassigned)

      The bug

      When you have multiple server list entries with the same server name and server address and you play for example with the second one in the list and there download the server resource pack it will always change the resource pack settings for the first entry.

      How to reproduce

      1. Create the following server list entry twice
        • Server name: cubecraft
        • Server address: play.cubecraft.net
        • Resource pack: Prompt
      2. Connect to the server using the second entry
      3. Use the "Travel" compass to get to "Lucky Islands" (sponge block)
      4. Accept the server resource pack
      5. Leave the server
      6. Inspect both server list entries but clicking "Edit"
        → You will notice that for the first server list entry the resource pack is enabled despite the fact that you connected using the second one

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.client.multiplayer.ServerList.saveSingleServer(ServerData) only uses the sever list entry name and IP to get the server the resource pack setting was changed for.

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

              Created:
              Updated:
              CHK: