mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Living: Remove superfluous fire resistance check from dealFireDamage()
This is already checked in Living->attack(). It's preferable to allow it to be cancelled there since plugins can then un-cancel EntityDamageEvent to bypass the effect.
This commit is contained in:
parent
502dd14c67
commit
49dbd8b2c8
@ -518,12 +518,6 @@ abstract class Living extends Entity implements Damageable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function dealFireDamage(){
|
|
||||||
if(!$this->hasEffect(Effect::FIRE_RESISTANCE)){
|
|
||||||
parent::dealFireDamage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ticks the entity's air supply when it cannot breathe.
|
* Ticks the entity's air supply when it cannot breathe.
|
||||||
* @param int $tickDiff
|
* @param int $tickDiff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user