Fixed LivingEntity#damage for death entities

This commit is contained in:
Felix Cravic 2020-05-27 21:25:54 +02:00
parent 70be25bd1c
commit eb4e47df52

View File

@ -214,6 +214,8 @@ public abstract class LivingEntity extends Entity implements EquipmentHandler {
* @return true if damage has been applied, false if it didn't
*/
public boolean damage(DamageType type, float value) {
if (isDead())
return false;
if (isImmune(type)) {
return false;
}