diff --git a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt index 95adb736..68bab5a0 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/PatchOption.kt @@ -17,7 +17,7 @@ object RequirementNotMetException : Exception("null was passed into an option th * A registry for an array of [PatchOption]s. * @param options An array of [PatchOption]s. */ -class PatchOptions(vararg val options: PatchOption<*>) : Iterable> { +class PatchOptions(vararg options: PatchOption<*>) : Iterable> { private val register = mutableMapOf>() init { @@ -60,7 +60,7 @@ class PatchOptions(vararg val options: PatchOption<*>) : Iterable get(key).value = null } - override fun iterator() = options.iterator() + override fun iterator() = register.values.iterator() } /**