mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
Fixed LivingEntity#damage for death entities
This commit is contained in:
parent
70be25bd1c
commit
eb4e47df52
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user