mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
4362de4540
commit
65620e2e95
1 changed files with 3 additions and 0 deletions
|
|
@ -403,7 +403,10 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
if (root)
|
||||
{
|
||||
if (cache.Peek() == 0) // TAG_End
|
||||
{
|
||||
cache.Dequeue();
|
||||
return NbtData;
|
||||
}
|
||||
if (cache.Peek() != 10) // TAG_Compound
|
||||
throw new System.IO.InvalidDataException("Failed to decode NBT: Does not start with TAG_Compound");
|
||||
ReadNextByte(cache); // Tag type (TAG_Compound)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue