From fb4a99a0efacd121146d5494cbfded399d8999db Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 19 Jun 2020 11:21:47 +0100 Subject: [PATCH] Position: x,y,z parameters are now mandatory --- 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 c295a585f..3642d8d3c 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 = 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");