mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-29 06:05:54 +00:00
Position: x,y,z parameters are now mandatory
This commit is contained in:
parent
9f89f2887a
commit
fb4a99a0ef
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user