Fixed a crash on Entity Metadata

Fixed a crash on Entity Metadata
This commit is contained in:
Anon 2024-02-25 16:13:30 +01:00 committed by GitHub
commit a749cd7fc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -735,11 +735,11 @@ namespace MinecraftClient.Protocol.Handlers
value = ReadNextString(cache);
break;
case EntityMetaDataType.Chat: // Chat
value = ReadNextString(cache);
value = ReadNextChat(cache);
break;
case EntityMetaDataType.OptionalChat: // Optional Chat
if (ReadNextBool(cache))
value = ReadNextString(cache);
value = ReadNextChat(cache);
break;
case EntityMetaDataType.Slot: // Slot
value = ReadNextItemSlot(cache, itemPalette);