diff --git a/src/entity/Entity.php b/src/entity/Entity.php index eb7098f1e..6681558ad 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -1187,14 +1187,12 @@ abstract class Entity{ $moveBB->offset(0, 0, $dz); - $stepHeight = $this->getStepHeight(); - - if($stepHeight > 0 && $fallingFlag && ($wantedX !== $dx || $wantedZ !== $dz)){ + if($this->stepHeight > 0 && $fallingFlag && ($wantedX !== $dx || $wantedZ !== $dz)){ $cx = $dx; $cy = $dy; $cz = $dz; $dx = $wantedX; - $dy = $stepHeight; + $dy = $this->stepHeight; $dz = $wantedZ; $stepBB = clone $this->boundingBox; @@ -1264,14 +1262,6 @@ abstract class Entity{ Timings::$entityMove->stopTiming(); } - public function setStepHeight(float $stepHeight) : void{ - $this->stepHeight = $stepHeight; - } - - public function getStepHeight() : float{ - return $this->stepHeight; - } - protected function checkGroundState(float $wantedX, float $wantedY, float $wantedZ, float $dx, float $dy, float $dz) : void{ $this->isCollidedVertically = $wantedY !== $dy; $this->isCollidedHorizontally = ($wantedX !== $dx || $wantedZ !== $dz);