mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 08:19:45 +00:00
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:
parent
70c3008b7b
commit
1370930ea9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user