Apothic Attributes (AttributesLib)

Apothic Attributes (AttributesLib)

24M Downloads

Calling `LivingEntity#hurt` within `LivingIncomingDamageEvent` potentially cause `LivingEntity#die` to trigger multiple times

HalcyonSuoh opened this issue ยท 1 comments

commented

there are oversights in calling hurt within LivingIncomingDamageEvent, at the point where extra hurt is called, the original hurt already goes through isDeadOrDying check but haven't yet dealt damage, if the extra hurt have enough to kill the entity, call die and finally return, the original hurt will keep running and call die a second time

commented

Should be resolved by d7633f7