Fix - KillAura cannot target projectiles and other non-LivingEntities.#266
Fix - KillAura cannot target projectiles and other non-LivingEntities.#266TwinkNet wants to merge 4 commits intolambda-client:1.21.11from
Conversation
|
There is no need to pass a type to the entity to the |
I get the idea but I'm not a fan of it just to target non-living entities. Most, if not all modules will have to use the targetting class without the delegate and it'll make a mess. |
Ok maybe it is a good idea after all, I approve of this. |
Previously lambda's killaura was unable to target and hit projectiles, like shulker bullets, despite having the ability to select them as a target. This is because
Targeting.target()would only ever give you aLivingEntity, below is the original code forTargeting.target():This is changed in my pull to accept a
T : Entitygeneric during the call, so that inKillAura.kt:becomes
This allows more flexibility in the use of the targeting system, and allows
CrystalAura.ktto remain unaffected by this change, it'll still only target for a LivingEntity:some minor modifications to
Targeting.validate()andTargeting.Prioritywere made to accommodate a genericEntityobject