Merge pull request #2864 from DevBobcorn/master

This commit is contained in:
Anon 2025-05-22 13:37:52 +02:00 committed by GitHub
commit 831a86cb4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();