OfflineSkins icon indicating copy to clipboard operation
OfflineSkins copied to clipboard

[1.12.2] Skulls Still Query Mojang

Open naqaden opened this issue 4 years ago • 1 comments

There are some instances where player heads still query sessionserver.mojang.com:443 once per ItemStack when B:useMojang=false

  • [ ] Loading the world when a player head item is dropped on the ground
  • [ ] Loading the hotbar with a player head in it
  • [ ] Loading inventory with a player head in it
  • [ ] Moving a player head in inventory

Player heads placed as tile entities do not have this problem. It's a problem for me because my client will hang for a second or more waiting for Mojang when I play offline, but eventually it loads the skin properly through the mod.

I'm using 1.12.2-v6 and haven't tested other MC versions.

naqaden avatar Feb 28 '20 03:02 naqaden

Upon creation of the ItemStack for Skull, vanilla code will query session server for respective profile if it has a String type SkullOwner tag. This process only happen once per ItemStack unless the behavior itself got modified. There is probably mods/utilities/websites that can pre-load profiles in ItemStack and generate a command for you.

zlainsama avatar Feb 28 '20 07:02 zlainsama