From 37157e0df6f8c85c9dbbfa5ce43aebd4bea102ec Mon Sep 17 00:00:00 2001 From: Georgii Korogodov Date: Sun, 17 Jul 2022 18:05:46 +0400 Subject: [PATCH] fixed bug --- NbtScrapper/NbtScrapper/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NbtScrapper/NbtScrapper/MainForm.cs b/NbtScrapper/NbtScrapper/MainForm.cs index 086e460..badc87c 100644 --- a/NbtScrapper/NbtScrapper/MainForm.cs +++ b/NbtScrapper/NbtScrapper/MainForm.cs @@ -98,7 +98,7 @@ private void FindBooksAndSigns(ICollection regionFiles, ICollection { 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(); @@ -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++; } }