mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Location cleanup (#1380)
There's no sense rewriting code that the parent constructor already implements.
This commit is contained in:
parent
130a60f2b2
commit
825d4f9702
@ -41,12 +41,9 @@ class Location extends Position{
|
||||
* @param Level $level
|
||||
*/
|
||||
public function __construct($x = 0, $y = 0, $z = 0, $yaw = 0.0, $pitch = 0.0, Level $level = null){
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
$this->z = $z;
|
||||
$this->yaw = $yaw;
|
||||
$this->pitch = $pitch;
|
||||
$this->level = $level;
|
||||
parent::__construct($x, $y, $z, $level);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user