From 01b3e01db5ddf26117f706e1b310dbeed3e8a557 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 21 Jul 2024 03:58:12 +0300 Subject: [PATCH] fixed fly kick in water, lava, cobweb and ladder --- src/entity/Entity.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 36cbe001..f24a6081 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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; }