mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-29 22:24:35 +02:00
fix(core): snapchat plus
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
parent
bee1b7bd03
commit
952d43b5e2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user