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

    Details

    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: