Players no longer burn when hit by other players, closes #3170 (#3470)

This commit is contained in:
Drew 2020-05-18 16:13:56 -04:00 committed by GitHub
parent fffa4b9501
commit 089180fef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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