diff --git a/src/pocketmine/entity/projectile/SplashPotion.php b/src/pocketmine/entity/projectile/SplashPotion.php index 4720a5c28..01b28cd62 100644 --- a/src/pocketmine/entity/projectile/SplashPotion.php +++ b/src/pocketmine/entity/projectile/SplashPotion.php @@ -82,7 +82,7 @@ class SplashPotion extends Throwable{ if($hasEffects){ if(!$this->willLinger()){ foreach($this->level->getNearbyEntities($this->boundingBox->expandedCopy(4.125, 2.125, 4.125), $this) as $entity){ - if($entity instanceof Living){ + if($entity instanceof Living and $entity->isAlive()){ $distanceSquared = $entity->distanceSquared($this); if($distanceSquared > 16){ //4 blocks continue;