mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed spam when switching gm to survival, fixed flykick after death
This commit is contained in:
parent
dc0fdbf4ae
commit
2091dd1a98
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue