Skip to content

Commit

Permalink
More debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
milutinke committed Feb 26, 2024
1 parent 1db0792 commit 620e8bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MinecraftClient/Protocol/Message/ChatParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ private static string NbtToString(Dictionary<string, object> nbt)
}
catch
{
ConsoleIO.WriteLine("[DEBUG] Full object:" + JsonSerializer.Serialize(extras));
ConsoleIO.WriteLine("[DEBUG] Full NBT object:" + JsonSerializer.Serialize(nbt));
ConsoleIO.WriteLine("[DEBUG] Full extras object:" + JsonSerializer.Serialize(extras));
ConsoleIO.WriteLine("[DEBUG] Value in question:" + JsonSerializer.Serialize(extras[i]));
ConsoleIO.WriteLine("[DEBUG] Full string builder so far:" + extraBuilder.ToString());
throw;
}
}
Expand All @@ -490,9 +492,10 @@ private static string NbtToString(Dictionary<string, object> nbt)
}
catch
{
ConsoleIO.WriteLine("[DEBUG] Full object:" + JsonSerializer.Serialize(withs));
ConsoleIO.WriteLine("[DEBUG] Full NBT object:" + JsonSerializer.Serialize(nbt));
ConsoleIO.WriteLine("[DEBUG] Full withs object:" + JsonSerializer.Serialize(withs));
ConsoleIO.WriteLine("[DEBUG] Value in question:" + JsonSerializer.Serialize(withs[i]));

ConsoleIO.WriteLine("[DEBUG] Full string builder so far:" + extraBuilder.ToString());
throw;
}
}
Expand Down

0 comments on commit 620e8bf

Please sign in to comment.