fix: defaultExclude unused

This commit is contained in:
oSumAtrIX 2022-07-10 20:58:11 +02:00
parent 99f123d1ca
commit 2015c2a1dc

View File

@ -28,8 +28,8 @@ fun Patcher.addPatchesFiltered() {
if (args.excludedPatches.contains(patchName)) {
logger.info("$prefix: Explicitely excluded")
return@patch
} else if (!patch.include && !args.includedPatches.contains(patchName)) {
logger.info("$prefix: Not explicitely included")
} else if ((!patch.include || args.defaultExclude) && !args.includedPatches.contains(patchName)) {
logger.info("$prefix: Not explicitly included")
return@patch
}