mojira.dev
MC-102236

GameProfile SKIN data is order dependent despite being json key-value data

Hey,
a GameProfile contains a "SKIN" entry that mostly just holds a url-entry but can additionally carry a "metadata" entry if the skin is marked as "slim".

The default order of these two key-value entries is first "metadata" then "url". By simply changing the order to "url", "metadata" the Minecraft client is no longer able to render the playerskin.

IMO this points to a faulty Json implementation on the client-side as Json Key-Value pairs should not be order dependent.

Example working:

{
  "SKIN": {
    "metadata": {
      "model": "slim"
    },
    "url": "http://textures.minecraft.net/texture/..."
  }
}

Example not working:

{
  "SKIN": {
    "url": "http://textures.minecraft.net/texture/...",
    "metadata": {
      "model": "slim"
    }
  }
}

Comments 2

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Is this still an issue in the most recent versions (currently that is 1.12.2, or the latest 1.13 development snapshot 18w07c) of Minecraft?

Kademlia

(Unassigned)

Unconfirmed

Minecraft 1.9.2, Minecraft 1.9.4

Retrieved