ItemShouldTakeDamage hook added#87
Conversation
|
My only qualm is the naming convention Otherwise, seems like a viable addition |
Really camelCase for hooks? Search by hook.Run via GitHub search bar inside repository. And... |
Touché |
|
I don't think adding this hook is a good idea. Simply because it is a duplicate of the EntityTakeDamage hook. With this addition, both hooks will strictly fire under nearly the same conditions. Honestly, I don't think triggering similar hooks just to save an |
|
Oh. Really. I forgot about it for some reason. Revert if you want. |
This reverts commit e3c4b0c.
I think it is essential for such hook to be since item entity have health and there no way to make all items or just a part really invulnerable for all or some types of damage without hacks like ent:setHealth(9999999999).
It's named like PlayerShouldTakeDamage and works similarly too.