Cleanroom
Cleanroom copied to clipboard
Improve LivingSetAttackEvent
enable change the target in the event.
the existed hook is @Deprecated
Why I edit this event
The old event do not imple the redirection of target. When our mod involves it we have to use reflection or AT.
Why the old hook remained
I noticed that
//Optifine Helper Functions u.u, these are here specifically for Optifine
//Note: When using Optifine, these methods are invoked using reflection, which
//incurs a major performance penalty.