Merge commit '089180fef4534b383a31a9d560a76bfaf0d16c6b'

# Conflicts:
#	resources/vanilla
#	src/entity/Living.php
This commit is contained in:
Dylan K. Taylor 2020-05-19 21:14:54 +01:00
commit 45ec4645d2

View File

@ -433,13 +433,6 @@ abstract class Living extends Entity{
} }
if($e !== null){ if($e !== null){
if((
$source->getCause() === EntityDamageEvent::CAUSE_PROJECTILE or
$source->getCause() === EntityDamageEvent::CAUSE_ENTITY_ATTACK
) and $e->isOnFire()){
$this->setOnFire(2 * $this->getWorld()->getDifficulty());
}
$deltaX = $this->location->x - $e->location->x; $deltaX = $this->location->x - $e->location->x;
$deltaZ = $this->location->z - $e->location->z; $deltaZ = $this->location->z - $e->location->z;
$this->knockBack($deltaX, $deltaZ, $source->getKnockBack()); $this->knockBack($deltaX, $deltaZ, $source->getKnockBack());