mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Entity: remove useless function
This commit is contained in:
parent
3b4e9eea96
commit
38b97dd0b7
@ -772,10 +772,6 @@ abstract class Entity{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function applyGravity() : void{
|
|
||||||
$this->motion->y -= $this->gravity;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function tryChangeMovement() : void{
|
protected function tryChangeMovement() : void{
|
||||||
$friction = 1 - $this->drag;
|
$friction = 1 - $this->drag;
|
||||||
|
|
||||||
@ -784,7 +780,7 @@ abstract class Entity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->gravityEnabled){
|
if($this->gravityEnabled){
|
||||||
$this->applyGravity();
|
$this->motion->y -= $this->gravity;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->applyDragBeforeGravity()){
|
if(!$this->applyDragBeforeGravity()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user