Entity: remove useless function

This commit is contained in:
Dylan K. Taylor 2020-09-25 18:11:24 +01:00
parent 3b4e9eea96
commit 38b97dd0b7

View File

@ -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()){