Entity: Fixed fire damage not taking effect in the void

this is an absurd bug that nobody would ever otherwise notice, but the problem is that the doOnFireTick() call isn't evaluated if hasUpdate is already true.
This commit is contained in:
Dylan K. Taylor 2018-08-22 15:36:31 +01:00
parent 64ed8adefc
commit ec1e257e21

View File

@ -1016,8 +1016,8 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$hasUpdate = true;
}
if($this->isOnFire()){
$hasUpdate = ($hasUpdate || $this->doOnFireTick($tickDiff));
if($this->isOnFire() and $this->doOnFireTick($tickDiff)){
$hasUpdate = true;
}
if($this->noDamageTicks > 0){