mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix reading window items packet in versions below 1.17.1
This commit is contained in:
parent
2409de2a2f
commit
19781985f7
1 changed files with 2 additions and 2 deletions
|
|
@ -2121,7 +2121,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
{
|
||||
var windowId = dataTypes.ReadNextByte(packetData);
|
||||
var stateId = -1;
|
||||
var elements = 0;
|
||||
int elements;
|
||||
|
||||
if (protocolVersion >= MC_1_17_1_Version)
|
||||
{
|
||||
|
|
@ -2132,7 +2132,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
else
|
||||
{
|
||||
// Elements as Short - 1.17.0 and below
|
||||
dataTypes.ReadNextShort(packetData);
|
||||
elements = dataTypes.ReadNextShort(packetData);
|
||||
}
|
||||
|
||||
Dictionary<int, Item> inventorySlots = new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue