From 453367218673eea4d25c05b1c0510882b769c5aa Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 27 Aug 2022 04:01:09 +0200 Subject: [PATCH] refactor: `addInstruction` instead of `addInstructions` --- .../youtube/misc/clientspoof/patch/ClientSpoofPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/clientspoof/patch/ClientSpoofPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/clientspoof/patch/ClientSpoofPatch.kt index 69ee3f909..f964ed602 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/clientspoof/patch/ClientSpoofPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/clientspoof/patch/ClientSpoofPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.impl.BytecodeData -import app.revanced.patcher.extensions.addInstructions +import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.extensions.instruction import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -33,7 +33,7 @@ class ClientSpoofPatch : BytecodePatch( val packageNameRegister = (method.instruction(insertIndex) as FiveRegisterInstruction).registerD val originalPackageName = "com.google.android.youtube" - method.addInstructions(insertIndex, "const-string v$packageNameRegister, \"$originalPackageName\"") + method.addInstruction(insertIndex, "const-string v$packageNameRegister, \"$originalPackageName\"") return PatchResultSuccess() }