Position: call parent constructor

This commit is contained in:
Dylan K. Taylor 2018-03-15 10:29:21 +00:00
parent 596c8a7b4f
commit dd844f7ad3

View File

@ -38,9 +38,7 @@ class Position extends Vector3{
* @param Level $level * @param Level $level
*/ */
public function __construct($x = 0, $y = 0, $z = 0, Level $level = null){ public function __construct($x = 0, $y = 0, $z = 0, Level $level = null){
$this->x = $x; parent::__construct($x, $y, $z);
$this->y = $y;
$this->z = $z;
$this->level = $level; $this->level = $level;
} }