mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: wrong value for iterator in PatchOptions
This commit is contained in:
parent
8f78f85e4a
commit
e31ac1f132
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ object RequirementNotMetException : Exception("null was passed into an option th
|
||||||
* A registry for an array of [PatchOption]s.
|
* A registry for an array of [PatchOption]s.
|
||||||
* @param options An array of [PatchOption]s.
|
* @param options An array of [PatchOption]s.
|
||||||
*/
|
*/
|
||||||
class PatchOptions(vararg val options: PatchOption<*>) : Iterable<PatchOption<*>> {
|
class PatchOptions(vararg options: PatchOption<*>) : Iterable<PatchOption<*>> {
|
||||||
private val register = mutableMapOf<String, PatchOption<*>>()
|
private val register = mutableMapOf<String, PatchOption<*>>()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
@ -60,7 +60,7 @@ class PatchOptions(vararg val options: PatchOption<*>) : Iterable<PatchOption<*>
|
||||||
get(key).value = null
|
get(key).value = null
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun iterator() = options.iterator()
|
override fun iterator() = register.values.iterator()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue