From 60b1f0a6e9c74406ec973efcde8bb4c23e7f8ed5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 14 Dec 2018 17:32:11 +0000 Subject: [PATCH] Fixed burning TNT setting affected mobs on fire when exploding, closes #2561 --- src/pocketmine/entity/Living.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); }