mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Position: x,y,z parameters are now mandatory
This commit is contained in:
@@ -37,7 +37,7 @@ class Position extends Vector3{
|
||||
* @param float|int $y
|
||||
* @param float|int $z
|
||||
*/
|
||||
public function __construct($x = 0, $y = 0, $z = 0, ?World $world = null){
|
||||
public function __construct($x, $y, $z, ?World $world = null){
|
||||
parent::__construct($x, $y, $z);
|
||||
if($world !== null and $world->isClosed()){
|
||||
throw new \InvalidArgumentException("Specified world has been unloaded and cannot be used");
|
||||
|
Reference in New Issue
Block a user