mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
ResourcePackSend: Add URL checking for invalid resource pack
This commit is contained in:
parent
581095e03e
commit
982f358bf3
1 changed files with 1 additions and 1 deletions
|
|
@ -860,7 +860,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
String forcedMessage = ChatParser.ParseText(dataTypes.ReadNextString(packetData));
|
String forcedMessage = ChatParser.ParseText(dataTypes.ReadNextString(packetData));
|
||||||
}
|
}
|
||||||
// Some server plugins may send invalid resource packs to probe the client and we need to ignore them (issue #1056)
|
// Some server plugins may send invalid resource packs to probe the client and we need to ignore them (issue #1056)
|
||||||
if (hash.Length != 40)
|
if (!url.StartsWith("http") && hash.Length != 40) // Some server may have null hash value
|
||||||
break;
|
break;
|
||||||
//Send back "accepted" and "successfully loaded" responses for plugins or server config making use of resource pack mandatory
|
//Send back "accepted" and "successfully loaded" responses for plugins or server config making use of resource pack mandatory
|
||||||
byte[] responseHeader = new byte[0];
|
byte[] responseHeader = new byte[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue