From 344749ead2f070ba0c4b761a2e614d4030dcf9bd Mon Sep 17 00:00:00 2001 From: ORelio Date: Fri, 21 Aug 2015 17:22:06 +0200 Subject: [PATCH] Add 'accepted' response pour resource packs An 'accepted' response is sent by vanilla minecraft before sending 'successfully loaded', so let's do the same thing here. See #91 --- MinecraftClient/Protocol/Handlers/Protocol18.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs index 502390d5..398d8c58 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol18.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs @@ -200,7 +200,8 @@ namespace MinecraftClient.Protocol.Handlers case 0x48: //Resource Pack Send string url = readNextString(ref packetData); string hash = readNextString(ref packetData); - //Send back a "successfully loaded" response for plugins making use of resource pack mandatory + //Send back "accepted" and "successfully loaded" responses for plugins making use of resource pack mandatory + SendPacket(0x19, concatBytes(getVarInt(hash.Length), Encoding.UTF8.GetBytes(hash), getVarInt(3))); SendPacket(0x19, concatBytes(getVarInt(hash.Length), Encoding.UTF8.GetBytes(hash), getVarInt(0))); break; default: