Skip to content

Commit

Permalink
fixed wrong if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed May 16, 2019
1 parent 6b49ee4 commit 1805279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/ModdingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public int LetsMod(Mod mod, DirectoryInfo modDirectory, DirectoryInfo gameDirect
rightGameDir = new DirectoryInfo(Paths.DataPath);
break;
case ModDirectoryType.Optional:
if (directory.Condition != null)
if (directory.Condition == null)
{
Log.Warning(mod.ModDirectoryName + ": The optional directory " + directory.Path + " should have a condition");
returnValue = WARNING_CODE;
Expand Down

0 comments on commit 1805279

Please sign in to comment.