Skip to content

Commit

Permalink
Fixed issue with constantly appending to list instead of clearing it …
Browse files Browse the repository at this point in the history
…first
  • Loading branch information
UserR00T committed May 8, 2018
1 parent c603ad4 commit a8f1999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/BP-Essentials/EssentialsVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BP_Essentials
{
public class EssentialsVariablesPlugin : EssentialsCorePlugin
{
public const string Version = "2.2.10";
public const string Version = "2.2.11";

// Generic Constants
public const string FileDirectory = "Essentials/";
Expand Down
3 changes: 2 additions & 1 deletion source/BP-Essentials/Methods/FileHandler/ReadFileStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static void Run(string fileName, List<string> output)
{
try
{
output.Clear();
foreach (var line in File.ReadAllLines(fileName))
if (line.StartsWith("#"))
continue;
Expand All @@ -27,4 +28,4 @@ public static void Run(string fileName, List<string> output)
}
}
}
}
}

0 comments on commit a8f1999

Please sign in to comment.