diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 8c9dcd31c8..397e3c7241 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -772,10 +772,6 @@ abstract class Entity{ return false; } - protected function applyGravity() : void{ - $this->motion->y -= $this->gravity; - } - protected function tryChangeMovement() : void{ $friction = 1 - $this->drag; @@ -784,7 +780,7 @@ abstract class Entity{ } if($this->gravityEnabled){ - $this->applyGravity(); + $this->motion->y -= $this->gravity; } if(!$this->applyDragBeforeGravity()){