fix(core): snapchat plus

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
rhunk 2025-03-16 22:01:05 +01:00
parent bee1b7bd03
commit 952d43b5e2

View File

@ -41,7 +41,7 @@ class SnapchatPlus: Feature("SnapchatPlus") {
it.parameterTypes[0].name != "java.lang.Boolean"
}.hook(HookStage.BEFORE) { param ->
val instance = param.thisObject<Any>()
val firstArg = param.arg<Any>(0)
val firstArg = param.argNullable<Any>(0) ?: return@hook
instance::class.java.declaredFields.filter { it.type == firstArg::class.java }.forEach {
it.isAccessible = true