mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed the array length issue
This commit is contained in:
parent
7c364731f5
commit
00d78ee81c
1 changed files with 2 additions and 2 deletions
|
|
@ -1966,10 +1966,10 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
{
|
{
|
||||||
byte[] arrayOfSlots = dataTypes.GetSlotsArray(items, itemPalette);
|
byte[] arrayOfSlots = dataTypes.GetSlotsArray(items, itemPalette);
|
||||||
|
|
||||||
log.Info("Length: " + sizeof(byte) * arrayOfSlots.Length);
|
log.Info("Length: " + dataTypes.ByteArrayToString(dataTypes.GetVarInt(arrayOfSlots.Length)) + " (" + arrayOfSlots.Length + ")");
|
||||||
log.Info("Array: " + dataTypes.ByteArrayToString(arrayOfSlots));
|
log.Info("Array: " + dataTypes.ByteArrayToString(arrayOfSlots));
|
||||||
|
|
||||||
packet.AddRange(dataTypes.GetVarInt(sizeof(byte) * arrayOfSlots.Length));
|
packet.AddRange(dataTypes.GetVarInt(arrayOfSlots.Length));
|
||||||
packet.AddRange(arrayOfSlots);
|
packet.AddRange(arrayOfSlots);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue