mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Entity: removed redundant return values for move()
This commit is contained in:
parent
ddc9dca8b4
commit
fa644edef3
@ -1512,13 +1512,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function move(float $dx, float $dy, float $dz) : bool{
|
||||
public function move(float $dx, float $dy, float $dz) : void{
|
||||
$this->blocksAround = null;
|
||||
|
||||
if($dx == 0 and $dz == 0 and $dy == 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
Timings::$entityMoveTimer->startTiming();
|
||||
|
||||
$movX = $dx;
|
||||
@ -1662,8 +1658,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
//TODO: vehicle collision events (first we need to spawn them!)
|
||||
|
||||
Timings::$entityMoveTimer->stopTiming();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz){
|
||||
|
@ -153,7 +153,7 @@ abstract class Projectile extends Entity{
|
||||
return $parent;
|
||||
}
|
||||
|
||||
public function move(float $dx, float $dy, float $dz) : bool{
|
||||
public function move(float $dx, float $dy, float $dz) : void{
|
||||
$this->blocksAround = null;
|
||||
|
||||
Timings::$entityMoveTimer->startTiming();
|
||||
@ -246,8 +246,6 @@ abstract class Projectile extends Entity{
|
||||
|
||||
|
||||
Timings::$entityMoveTimer->stopTiming();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user