Entity: removed redundant return values for move()

This commit is contained in:
Dylan K. Taylor 2018-03-14 13:39:23 +00:00
parent ddc9dca8b4
commit fa644edef3
2 changed files with 2 additions and 10 deletions

View File

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

View File

@ -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;
}
/**