chore: finalize resource pack translation support

Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/d7467a13-d1ff-4cd6-a332-1ac389c445da

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-04 12:21:28 +00:00 committed by GitHub
parent 34f45543c3
commit 9f974da00d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

View file

@ -705,6 +705,8 @@ namespace MinecraftClient.Protocol.Handlers
var url = dataTypes.ReadNextString(packetData);
var hash = dataTypes.ReadNextString(packetData);
// Use the server-provided UUID when available, then fall back to the legacy SHA-1 hash,
// and finally the URL so pre-UUID resource packs can still be replaced or cleared locally.
string packIdentifier = uuid != Guid.Empty ? uuid.ToString("D") : (hash.Length == 40 ? hash : url);
if (protocolVersion >= MC_1_17_Version)