refactor: remove repeated hook feature in YukiMemberHookCreator

This commit is contained in:
2025-06-16 18:20:47 +08:00
parent d36a6a10e0
commit beb7b431f8
8 changed files with 32 additions and 83 deletions

View File

@@ -77,4 +77,12 @@ val instance: Any
name = "test"
emptyParameters()
}.of(instance).invokeOriginal()
```
```
## Repeat Hook Restricted Deprecated
`YukiHookAPI` has deprecated the restriction of duplicate Hook since the `1.3.0` version.
Now, `YukiHookAPI` no longer limits duplicate Hooks to the same method, you can hook multiple times on the same method.
`YukiHookAPI` also deprecated the `onAlreadyHooked` method of `hook { ... }`.
Now this method will be useless and will not be called back. If necessary, please manually handle the relevant logic of duplicate Hooks.