mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
ee96788019
commit
27f35ee7a9
1 changed files with 3 additions and 0 deletions
|
|
@ -573,6 +573,9 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
case PacketIncomingType.ResourcePackSend:
|
case PacketIncomingType.ResourcePackSend:
|
||||||
string url = dataTypes.ReadNextString(packetData);
|
string url = dataTypes.ReadNextString(packetData);
|
||||||
string hash = dataTypes.ReadNextString(packetData);
|
string hash = dataTypes.ReadNextString(packetData);
|
||||||
|
// Ignore invalid length hash string
|
||||||
|
if (hash.Length != 40)
|
||||||
|
break;
|
||||||
//Send back "accepted" and "successfully loaded" responses for plugins making use of resource pack mandatory
|
//Send back "accepted" and "successfully loaded" responses for plugins making use of resource pack mandatory
|
||||||
byte[] responseHeader = new byte[0];
|
byte[] responseHeader = new byte[0];
|
||||||
if (protocolversion < MC110Version) //MC 1.10 does not include resource pack hash in responses
|
if (protocolversion < MC110Version) //MC 1.10 does not include resource pack hash in responses
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue