From 2015c2a1dcc0290af237e2eb1ab4aaf5fc84d382 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 10 Jul 2022 20:58:11 +0200 Subject: [PATCH] fix: `defaultExclude` unused --- src/main/kotlin/app/revanced/utils/patcher/Patcher.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt index 54edcd7b..76be67b4 100644 --- a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt @@ -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 }