Position::__construct() accepts floats for x,y,z

This commit is contained in:
Dylan K. Taylor 2019-12-12 16:15:49 +00:00
parent 1370930ea9
commit e8d3a25028

View File

@ -33,10 +33,10 @@ class Position extends Vector3{
public $level = null;
/**
* @param int $x
* @param int $y
* @param int $z
* @param Level $level
* @param float|int $x
* @param float|int $y
* @param float|int $z
* @param Level $level
*/
public function __construct($x = 0, $y = 0, $z = 0, Level $level = null){
parent::__construct($x, $y, $z);