Skip to content

Commit

Permalink
Fixed a crash on Entity Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
milutinke committed Feb 25, 2024
1 parent 3522a16 commit ecc88fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MinecraftClient/Protocol/Handlers/DataTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,11 @@ private object ReadNbtField(Queue<byte> cache, int fieldType)
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);
Expand Down

0 comments on commit ecc88fa

Please sign in to comment.