fixed fly kick in water, lava, cobweb and ladder

This commit is contained in:
GameHerobrine 2024-07-21 03:58:12 +03:00
parent 48c1aa1cb9
commit 01b3e01db5

View file

@ -791,6 +791,10 @@ class Entity extends Position
}
}
if($id == WATER || $id === STILL_WATER || $id === COBWEB || $id == LAVA || $id === STILL_LAVA){
$this->notOnGroundTicks = 0;
}
intersects:
if($y <= floor($this->boundingBox->minY) && !$this->onGround){
if($intersects > 0) $this->onGround = count($bounds) > 0;
@ -828,6 +832,7 @@ class Entity extends Position
if($this->isOnLadder()){
$this->fallDistance = 0;
$this->notOnGroundTicks = 0;
$this->fallStart = $this->y;
}