mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 10:45:47 +08:00
refactor: remove repeated hook feature in YukiMemberHookCreator
This commit is contained in:
@@ -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.
|
Reference in New Issue
Block a user