mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge pull request #2864 from DevBobcorn/master
This commit is contained in:
commit
831a86cb4f
1 changed files with 2 additions and 2 deletions
|
|
@ -2121,7 +2121,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
{
|
{
|
||||||
var windowId = dataTypes.ReadNextByte(packetData);
|
var windowId = dataTypes.ReadNextByte(packetData);
|
||||||
var stateId = -1;
|
var stateId = -1;
|
||||||
var elements = 0;
|
int elements;
|
||||||
|
|
||||||
if (protocolVersion >= MC_1_17_1_Version)
|
if (protocolVersion >= MC_1_17_1_Version)
|
||||||
{
|
{
|
||||||
|
|
@ -2132,7 +2132,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Elements as Short - 1.17.0 and below
|
// Elements as Short - 1.17.0 and below
|
||||||
dataTypes.ReadNextShort(packetData);
|
elements = dataTypes.ReadNextShort(packetData);
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<int, Item> inventorySlots = new();
|
Dictionary<int, Item> inventorySlots = new();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue