Skip to content

Use undashed UUIDs for skin profile requests#802

Open
laroon-lili wants to merge 1 commit into
BlueMap-Minecraft:masterfrom
laroon-lili:codex/littleskin-yggdrasil-uuid
Open

Use undashed UUIDs for skin profile requests#802
laroon-lili wants to merge 1 commit into
BlueMap-Minecraft:masterfrom
laroon-lili:codex/littleskin-yggdrasil-uuid

Conversation

@laroon-lili
Copy link
Copy Markdown

Summary

Use the undashed UUID form when requesting player profile data from the Mojang session server in MojangSkinProvider.

Why

The session profile endpoint commonly expects UUIDs without hyphens. Using UUID.toString() sends the dashed form, which can fail with Yggdrasil-compatible/session-server implementations that only accept the canonical undashed profile id format. In that case BlueMap cannot download the skin and never writes the playerhead asset.

This keeps BlueMap's internal UUID handling and playerhead asset names unchanged; it only normalizes the UUID for the outbound session profile request.

Testing

  • Built the NeoForge release jar from the v5.7 codebase with Java 21:
    ./gradlew :neoforge:release --no-daemon
  • Deployed the patched NeoForge jar on a NeoForge 1.21.1 server using authlib-injector/LittleSkin.
  • Confirmed BlueMap loads successfully after the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant