From 952d43b5e23443cbda6f607b2d4c3e0dea39e4c7 Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sun, 16 Mar 2025 22:01:05 +0100 Subject: [PATCH] fix(core): snapchat plus Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- .../rhunk/snapenhance/core/features/impl/global/SnapchatPlus.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/SnapchatPlus.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/SnapchatPlus.kt index 6c782d86..cb52809c 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/SnapchatPlus.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/SnapchatPlus.kt @@ -41,7 +41,7 @@ class SnapchatPlus: Feature("SnapchatPlus") { it.parameterTypes[0].name != "java.lang.Boolean" }.hook(HookStage.BEFORE) { param -> val instance = param.thisObject() - val firstArg = param.arg(0) + val firstArg = param.argNullable(0) ?: return@hook instance::class.java.declaredFields.filter { it.type == firstArg::class.java }.forEach { it.isAccessible = true