Mojira Archive
MC-118235

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

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.

Unresolved

Marcono1234

2017-06-03, 10:43 PM

2021-02-21, 10:01 AM

2

4

Confirmed

(Unassigned)

ip-address, resource-pack, server, server-list

Minecraft 1.11.2 - 1.16.5Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13.1, 1.16.5

-