mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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:
parent
34f45543c3
commit
9f974da00d
2 changed files with 12 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue