mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Fixed derp x2
This commit is contained in:
parent
547ca74feb
commit
c6c0b75eae
@ -1371,6 +1371,8 @@ class Player extends PlayerEntity{
|
|||||||
$pk->status = 0;
|
$pk->status = 0;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
||||||
|
parent::__construct($this->level, $nbt);
|
||||||
|
|
||||||
$pk = new StartGamePacket;
|
$pk = new StartGamePacket;
|
||||||
$pk->seed = $this->level->getSeed();
|
$pk->seed = $this->level->getSeed();
|
||||||
$pk->x = $this->x;
|
$pk->x = $this->x;
|
||||||
@ -1381,7 +1383,6 @@ class Player extends PlayerEntity{
|
|||||||
$pk->eid = 0; //Always use EntityID as zero for the actual player
|
$pk->eid = 0; //Always use EntityID as zero for the actual player
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
||||||
parent::__construct($this->level, $nbt);
|
|
||||||
|
|
||||||
if(($level = $this->server->api->level->get($this->namedtag->SpawnLevel)) !== false){
|
if(($level = $this->server->api->level->get($this->namedtag->SpawnLevel)) !== false){
|
||||||
$this->spawnPosition = new Position($this->namedtag->SpawnX, $this->namedtag->SpawnY, $this->namedtag->SpawnZ, $level);
|
$this->spawnPosition = new Position($this->namedtag->SpawnX, $this->namedtag->SpawnY, $this->namedtag->SpawnZ, $level);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user