mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix 1.16 Entity Equipment
This commit is contained in:
parent
4fb47f20c7
commit
6c46fc3ba4
1 changed files with 5 additions and 1 deletions
|
|
@ -739,7 +739,11 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
if (handler.GetEntityHandlingEnabled())
|
if (handler.GetEntityHandlingEnabled())
|
||||||
{
|
{
|
||||||
int entityid = dataTypes.ReadNextVarInt(packetData);
|
int entityid = dataTypes.ReadNextVarInt(packetData);
|
||||||
int slot2 = dataTypes.ReadNextVarInt(packetData);
|
int slot2;
|
||||||
|
if (protocolversion >= MC1161Version)
|
||||||
|
slot2 = dataTypes.ReadNextByte(packetData);
|
||||||
|
else
|
||||||
|
slot2 = dataTypes.ReadNextVarInt(packetData);
|
||||||
Item item = dataTypes.ReadNextItemSlot(packetData);
|
Item item = dataTypes.ReadNextItemSlot(packetData);
|
||||||
handler.OnEntityEquipment(entityid, slot2, item);
|
handler.OnEntityEquipment(entityid, slot2, item);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue