fixed spam when switching gm to survival, fixed flykick after death

This commit is contained in:
GameHerobrine 2024-11-24 23:27:14 +03:00
parent dc0fdbf4ae
commit 2091dd1a98
2 changed files with 2 additions and 1 deletions

View file

@ -821,7 +821,7 @@ class Entity extends Position
}
}
if($prevGroundState == $this->onGround && !$this->onGround && $this->player->isSleeping == false){ //isSleeping may be a vector
if($prevGroundState == $this->onGround && !$this->onGround && $this->player->isSleeping == false && !$this->dead){ //isSleeping may be a vector
++$this->notOnGroundTicks;
}else if($this->onGround){
$this->notOnGroundTicks = 0;