mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 13:24:26 +02:00
fix: set index for insertAt to 0 by default
This commit is contained in:
parent
4dd820ffdf
commit
d5b4c99c00
@ -7,7 +7,7 @@ object ASMWriter {
|
|||||||
fun InsnList.setAt(index: Int, node: AbstractInsnNode) {
|
fun InsnList.setAt(index: Int, node: AbstractInsnNode) {
|
||||||
this[this.get(index)] = node
|
this[this.get(index)] = node
|
||||||
}
|
}
|
||||||
fun InsnList.insertAt(index: Int, vararg nodes: AbstractInsnNode) {
|
fun InsnList.insertAt(index: Int = 0, vararg nodes: AbstractInsnNode) {
|
||||||
this.insert(this.get(index), nodes.toInsnList())
|
this.insert(this.get(index), nodes.toInsnList())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user