50c4b76dfa6f8dc670bca097a6b522f3b16e9111
This commit centralizes event handling to where damage is actually applied to the entity to avoid bugs that have resulted from nodamageticks, modifications to damage after the event has been called, and similar mishaps. This also implements new API for getting and setting of modifications made to the damage amount actually applied to the entity. This is done by storing the change in the damage amount as each modifier is applied by vanilla code. The method that actually damages the armor worn by an entity has been relocated beneath the event called as to not apply durability loss when the event has been cancelled. By: t00thpick1 <t00thpick1dirko@gmail.com>
Description
No description provided
Languages
Java
100%