mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 00:17:58 +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
|
* @return true if damage has been applied, false if it didn't
|
||||||
*/
|
*/
|
||||||
public boolean damage(DamageType type, float value) {
|
public boolean damage(DamageType type, float value) {
|
||||||
|
if (isDead())
|
||||||
|
return false;
|
||||||
if (isImmune(type)) {
|
if (isImmune(type)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user