mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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
This commit is contained in:
parent
a0683e1c46
commit
344749ead2
1 changed files with 2 additions and 1 deletions
|
|
@ -200,7 +200,8 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
case 0x48: //Resource Pack Send
|
case 0x48: //Resource Pack Send
|
||||||
string url = readNextString(ref packetData);
|
string url = readNextString(ref packetData);
|
||||||
string hash = 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)));
|
SendPacket(0x19, concatBytes(getVarInt(hash.Length), Encoding.UTF8.GetBytes(hash), getVarInt(0)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue