mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Location::__construct() accepts floats for x,y,z
This commit is contained in:
@ -33,12 +33,12 @@ class Location extends Position{
|
|||||||
public $pitch;
|
public $pitch;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $x
|
* @param float|int $x
|
||||||
* @param int $y
|
* @param float|int $y
|
||||||
* @param int $z
|
* @param float|int $z
|
||||||
* @param float $yaw
|
* @param float $yaw
|
||||||
* @param float $pitch
|
* @param float $pitch
|
||||||
* @param Level $level
|
* @param Level $level
|
||||||
*/
|
*/
|
||||||
public function __construct($x = 0, $y = 0, $z = 0, $yaw = 0.0, $pitch = 0.0, Level $level = null){
|
public function __construct($x = 0, $y = 0, $z = 0, $yaw = 0.0, $pitch = 0.0, Level $level = null){
|
||||||
$this->yaw = $yaw;
|
$this->yaw = $yaw;
|
||||||
|
Reference in New Issue
Block a user