diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index 114db0df8..c42304586 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -571,7 +571,10 @@ abstract class Living extends Entity implements Damageable{ } if($e !== null){ - if($e->isOnFire()){ + if(( + $source->getCause() === EntityDamageEvent::CAUSE_PROJECTILE or + $source->getCause() === EntityDamageEvent::CAUSE_ENTITY_ATTACK + ) and $e->isOnFire()){ $this->setOnFire(2 * $this->level->getDifficulty()); }