diff --git a/src/world/Position.php b/src/world/Position.php index 3642d8d3c..c670da086 100644 --- a/src/world/Position.php +++ b/src/world/Position.php @@ -37,7 +37,7 @@ class Position extends Vector3{ * @param float|int $y * @param float|int $z */ - public function __construct($x, $y, $z, ?World $world = null){ + public function __construct($x, $y, $z, ?World $world){ parent::__construct($x, $y, $z); if($world !== null and $world->isClosed()){ throw new \InvalidArgumentException("Specified world has been unloaded and cannot be used");