diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt index bdc398f..e2979fe 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -74,7 +74,7 @@ class Patcher( } // Add all patches and their dependencies to the context. - for (patch in patches) context.executablePatches.putIfAbsent(patch::class, patch) ?: { + for (patch in patches) context.executablePatches.putIfAbsent(patch::class, patch) ?: run { context.allPatches[patch::class] = patch patch.dependencies?.forEach { it.putDependenciesRecursively() }