From 6633a38ca9fcfaf521d78fc9be64145bf56155a6 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Mon, 3 Apr 2023 18:41:58 +0900 Subject: [PATCH] fix typo --- .../misc/playerbutton/patch/PlayerButtonPatch.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playerbutton/patch/PlayerButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playerbutton/patch/PlayerButtonPatch.kt index 7162142e6..343f4b013 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playerbutton/patch/PlayerButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playerbutton/patch/PlayerButtonPatch.kt @@ -32,10 +32,10 @@ class PlayerButtonPatch : BytecodePatch( LiveChatFingerprint.result?.let { val endIndex = it.scanResult.patternScanResult!!.endIndex - val instuctions = it.mutableMethod.instruction(endIndex) + val instructions = it.mutableMethod.instruction(endIndex) val imageButtonClass = context - .findClass((instuctions as BuilderInstruction21c) + .findClass((instructions as BuilderInstruction21c) .reference.toString())!! .mutableClass @@ -43,9 +43,9 @@ class PlayerButtonPatch : BytecodePatch( with (imageButtonClass.findMutableMethodOf(method)) { var jumpInstruction = true - implementation!!.instructions.forEachIndexed { index, instuctions -> - if (instuctions.opcode.ordinal == Opcode.INVOKE_VIRTUAL.ordinal) { - val definedInstruction = (instuctions as? BuilderInstruction35c) + implementation!!.instructions.forEachIndexed { index, instructions -> + if (instructions.opcode.ordinal == Opcode.INVOKE_VIRTUAL.ordinal) { + val definedInstruction = (instructions as? BuilderInstruction35c) if (definedInstruction?.reference.toString() == "Landroid/view/View;->setVisibility(I)V") {