Merge pull request #2182 from wabbajack-tools/inferrer_backwards_compatibility_fix

WABBAJACK_ALWAYS_DISABLE tag inferring #2181
This commit is contained in:
Luca 2022-11-08 10:35:17 +01:00 committed by GitHub
commit a76c80e42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,9 @@ public class CompilerSettingsInferencer
cs.Include = cs.Include.Append(modFolder.RelativeTo(mo2Folder)).ToArray();
if ((generalModData["notes"]?.Contains(Consts.WABBAJACK_IGNORE) ?? false) ||
(generalModData["comments"]?.Contains(Consts.WABBAJACK_IGNORE) ?? false))
(generalModData["comments"]?.Contains(Consts.WABBAJACK_IGNORE) ?? false) ||
(generalModData["notes"]?.Contains(Consts.WABBAJACK_ALWAYS_DISABLE) ?? false) ||
(generalModData["comments"]?.Contains(Consts.WABBAJACK_ALWAYS_DISABLE) ?? false))
cs.Ignore = cs.Ignore.Append(modFolder.RelativeTo(mo2Folder)).ToArray();
}