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++; } }