diff --git a/src/entity/Entity.php b/src/entity/Entity.php index ee566e2d..968615c8 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -918,7 +918,7 @@ class Entity extends Position } } - if($prevGroundState == $this->onGround && !$this->onGround && $this->player->isSleeping == false && !$this->dead){ //isSleeping may be a vector + if($prevGroundState == $this->onGround && !$this->onGround && $this->player->isSleeping == false && !$this->dead && $this->riding == 0){ //isSleeping may be a vector ++$this->notOnGroundTicks; }else if($this->onGround){ $this->notOnGroundTicks = 0;