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:
Dylan K. Taylor 2017-12-07 17:32:50 +00:00
parent 502dd14c67
commit 49dbd8b2c8

View File

@ -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.
* @param int $tickDiff