diff --git a/core/src/main/kotlin/me/eternal/purrfectsnap/core/util/hook/HookAdapter.kt b/core/src/main/kotlin/me/eternal/purrfectsnap/core/util/hook/HookAdapter.kt index 03f98fe4..6671a0fc 100644 --- a/core/src/main/kotlin/me/eternal/purrfectsnap/core/util/hook/HookAdapter.kt +++ b/core/src/main/kotlin/me/eternal/purrfectsnap/core/util/hook/HookAdapter.kt @@ -50,6 +50,10 @@ class HookAdapter( methodHookParam.throwable = throwable } + fun clearThrowable() { + methodHookParam.throwable = null + } + fun throwable(): Throwable? { return methodHookParam.throwable } @@ -73,4 +77,4 @@ class HookAdapter( errorCallback.accept(it) } } -} \ No newline at end of file +}