mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Player construction now happens when we're ready to create the player entity
this fixes a wide range of bugs with the initial spawn sequence, and allows to simplify a whole lot of player setup logic.
This commit is contained in:
@ -378,12 +378,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
/** @var TimingsHandler */
|
||||
protected $timings;
|
||||
|
||||
/** @var bool */
|
||||
protected $constructed = false;
|
||||
|
||||
|
||||
public function __construct(Level $level, CompoundTag $nbt){
|
||||
$this->constructed = true;
|
||||
$this->timings = Timings::getEntityTimings($this);
|
||||
|
||||
$this->temporalVector = new Vector3();
|
||||
|
Reference in New Issue
Block a user