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.
This commit is contained in:
Dylan K. Taylor 2019-12-12 16:14:30 +00:00
parent 70c3008b7b
commit 1370930ea9

View File

@ -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;