mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
entity spawner
This commit is contained in:
parent
5b2c7bc9d0
commit
6fbd52c1a5
4 changed files with 67 additions and 12 deletions
|
|
@ -1432,9 +1432,9 @@ class Player{
|
|||
$this->entity->z = $this->data->get("position")["z"];
|
||||
$pk = new StartGamePacket;
|
||||
$pk->seed = $this->level->getSeed();
|
||||
$pk->spawnX = (int) $spawnPos->x;
|
||||
$pk->spawnY = (int) $spawnPos->y;
|
||||
$pk->spawnZ = (int) $spawnPos->z;
|
||||
$pk->spawnX = (int) $this->spawnPosition->x;
|
||||
$pk->spawnY = (int) $this->spawnPosition->y;
|
||||
$pk->spawnZ = (int) $this->spawnPosition->z;
|
||||
$pk->x = (int) $this->entity->x;
|
||||
$pk->y = (int) $this->entity->y;
|
||||
$pk->z = (int) $this->entity->z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue