fixed fly kick when riding minecart

This commit is contained in:
GameHerobrine 2026-06-12 06:25:42 +03:00
parent e678d16118
commit f0f73b55cf

View file

@ -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;