Merge branch 'stable' into minor-next

This commit is contained in:
Dylan K. Taylor
2023-07-19 13:22:07 +01:00
3 changed files with 20 additions and 12 deletions

View File

@ -507,7 +507,7 @@ abstract class Living extends Entity{
}
public function attack(EntityDamageEvent $source) : void{
if($this->noDamageTicks > 0){
if($this->noDamageTicks > 0 && $source->getCause() !== EntityDamageEvent::CAUSE_SUICIDE){
$source->cancel();
}