Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Megageorgio committed Jul 17, 2022
1 parent f84ab28 commit 37157e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NbtScrapper/NbtScrapper/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void FindBooksAndSigns(ICollection<string> regionFiles, ICollection<stri
infoTextBox.InvokeIfRequired(() =>
{
infoTextBox.Text =
$@"Players: {progressBar.Value}/{playerFiles.Count}{{Environment.NewLine}}Signs found: {signCount}{Environment.NewLine}Books found: {bookCount}";
$@"Players: {progressBar.Value}/{playerFiles.Count}{Environment.NewLine}Signs found: {signCount}{Environment.NewLine}Books found: {bookCount}";
});
CyclicSearch(playerData.RootTag as NbtContainerTag, SearchMethod);
GC.Collect();
Expand Down Expand Up @@ -232,7 +232,7 @@ void SearchMethod(NbtContainerTag container, NbtTag tag)
{
bookFileWriter.WriteLine($"--- Page {i} ---");
var isSnbt = SnbtParser.ClassicTryParse(page.StringValue, false, out var result);
bookFileWriter.WriteLine(isSnbt && page.TagType != NbtTagType.String ? result["text"].StringValue : page.StringValue);
bookFileWriter.WriteLine(isSnbt && result.TagType != NbtTagType.String ? result["text"].StringValue : page.StringValue);
i++;
}
}
Expand Down

0 comments on commit 37157e0

Please sign in to comment.