From 137605ab8cf6340c491366c7472e90ff6e78693e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 22 Jun 2020 14:15:27 +0100 Subject: [PATCH] Position: make World constructor parameter required --- src/world/Position.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");