mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Merge branch 'release/3.4'
This commit is contained in:
commit
790ef0325c
@ -653,11 +653,11 @@ abstract class Living extends Entity implements Damageable{
|
|||||||
|
|
||||||
$hasUpdate = parent::entityBaseTick($tickDiff);
|
$hasUpdate = parent::entityBaseTick($tickDiff);
|
||||||
|
|
||||||
if($this->doEffectsTick($tickDiff)){
|
|
||||||
$hasUpdate = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($this->isAlive()){
|
if($this->isAlive()){
|
||||||
|
if($this->doEffectsTick($tickDiff)){
|
||||||
|
$hasUpdate = true;
|
||||||
|
}
|
||||||
|
|
||||||
if($this->isInsideOfSolid()){
|
if($this->isInsideOfSolid()){
|
||||||
$hasUpdate = true;
|
$hasUpdate = true;
|
||||||
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_SUFFOCATION, 1);
|
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_SUFFOCATION, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user