From 9f89f2887a329a20808ae6c5b384f9d8d5a0bea0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 19 Jun 2020 11:19:05 +0100 Subject: [PATCH] Location: x,y,z parameters are now mandatory --- src/entity/Location.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Location.php b/src/entity/Location.php index f9a59c50e..2ff9171ac 100644 --- a/src/entity/Location.php +++ b/src/entity/Location.php @@ -34,7 +34,7 @@ class Location extends Position{ /** @var float */ public $pitch; - public function __construct(float $x = 0, float $y = 0, float $z = 0, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){ + public function __construct(float $x, float $y, float $z, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){ $this->yaw = $yaw; $this->pitch = $pitch; parent::__construct($x, $y, $z, $world);