mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Entity: remove useless function
This commit is contained in:
parent
3b4e9eea96
commit
38b97dd0b7
@ -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()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user