mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
fix: Run code-block if executablePatches does not yet contain patch
This commit is contained in:
@@ -74,7 +74,7 @@ class Patcher(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add all patches and their dependencies to the context.
|
// 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
|
context.allPatches[patch::class] = patch
|
||||||
|
|
||||||
patch.dependencies?.forEach { it.putDependenciesRecursively() }
|
patch.dependencies?.forEach { it.putDependenciesRecursively() }
|
||||||
|
|||||||
Reference in New Issue
Block a user