Merge pull request #1746 from azraerl/v2531

BF: Proper condition for TXT tag files
This commit is contained in:
Timothy Baldridge 2021-11-28 13:52:32 -07:00 committed by GitHub
commit 6812b36349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace Wabbajack.Lib.CompilationSteps
{
foreach (var folderpath in _ignoreList)
{
if (!source.AbsolutePath.Equals(folderpath) || !source.AbsolutePath.InFolder(folderpath)) continue;
if (!source.AbsolutePath.Equals(folderpath) && !source.AbsolutePath.InFolder(folderpath)) continue;
var result = source.EvolveTo<IgnoredDirectly>();
result.Reason = _reason;
return result;

View File

@ -45,7 +45,7 @@ namespace Wabbajack.Lib.CompilationSteps
{
foreach (var folderpath in _includeDirectly)
{
if (!source.AbsolutePath.Equals(folderpath) || !source.AbsolutePath.InFolder(folderpath)) continue;
if (!source.AbsolutePath.Equals(folderpath) && !source.AbsolutePath.InFolder(folderpath)) continue;
var result = source.EvolveTo<InlineFile>();
result.SourceDataID = await _compiler.IncludeFile(source.AbsolutePath);
return result;