From 38b97dd0b76d6a456fc4a077f558e889cfc8b7b6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 25 Sep 2020 18:11:24 +0100 Subject: [PATCH] Entity: remove useless function --- src/entity/Entity.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()){