Skip to content

Commit

Permalink
fixed absolute path for lang file
Browse files Browse the repository at this point in the history
  • Loading branch information
JannesStroehlein committed Jan 8, 2023
1 parent 9d08275 commit 79ad6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MinecraftLogAnalyzer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using CommandLine;
using MinecraftLogAnalyzer.Models;
using MinecraftLogAnalyzer;
using System.Reflection;

ParserResult<CommandLineOptions> result = Parser.Default.ParseArguments<CommandLineOptions>(args);

Expand Down Expand Up @@ -172,7 +173,7 @@ where msg.Message.Contains(" has made the advancement ")
Dictionary<string, int> mobKills = new Dictionary<string, int>();

// Reading all Death Messages
string langFile = @"C:\Users\jatis\source\repos\MinecraftLogAnalyzer\MinecraftLogAnalyzer\lang.lang";
string langFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "lang.lang");
Dictionary<string, string> deathMessages = new Dictionary<string, string>();
foreach (string line in File.ReadAllLines(langFile))
{
Expand Down

0 comments on commit 79ad6ee

Please sign in to comment.