Fix Miner/Farmer addon scripts (#1047)

This commit is contained in:
ORelio 2020-06-13 23:47:25 +02:00
parent 87302bafab
commit 09bfe92071
4 changed files with 17 additions and 17 deletions

View file

@ -572,7 +572,7 @@ namespace MinecraftClient.Protocol.Handlers
case PacketIncomingType.ResourcePackSend:
string url = dataTypes.ReadNextString(packetData);
string hash = dataTypes.ReadNextString(packetData);
// Ignore invalid length hash string
// Some server plugins may send invalid resource packs to probe the client and we need to ignore them (issue #1056)
if (hash.Length != 40)
break;
//Send back "accepted" and "successfully loaded" responses for plugins making use of resource pack mandatory