From 1370930ea9941b657554eba99a437bcc61a9eb8d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Dec 2019 16:14:30 +0000 Subject: [PATCH] Entity: remove redundant defaults from lastX lastY lastZ, remove nullability these fields are never null because they are initialized in the constructor, and they are never written to with null nor ever expected to be null. --- src/pocketmine/entity/Entity.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index a2b3468e9..22d1e79fc 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -463,12 +463,12 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ /** @var Block[]|null */ protected $blocksAround = null; - /** @var float|null */ - public $lastX = null; - /** @var float|null */ - public $lastY = null; - /** @var float|null */ - public $lastZ = null; + /** @var float */ + public $lastX; + /** @var float */ + public $lastY; + /** @var float */ + public $lastZ; /** @var Vector3 */ protected $motion;