mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
player will spawn 0.1 blocks above the ground instead of 1
This commit is contained in:
parent
75d75e426a
commit
c64d5eedbb
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
|
||||
class Player{
|
||||
|
||||
public static $smallChunks = false, $experimentalHotbar = false;
|
||||
|
|
@ -1731,7 +1730,7 @@ class Player{
|
|||
$pk = new StartGamePacket;
|
||||
$pk->seed = $this->level->getSeed();
|
||||
$pk->x = $this->data->get("position")["x"];
|
||||
$pk->y = $this->data->get("position")["y"]+1;
|
||||
$pk->y = ceil($this->data->get("position")["y"])+1;
|
||||
$pk->z = $this->data->get("position")["z"];
|
||||
$pk->generator = 0;
|
||||
$pk->gamemode = $this->gamemode & 0x01;
|
||||
|
|
@ -1762,7 +1761,7 @@ class Player{
|
|||
$this->eid = $this->entity->eid;
|
||||
$this->server->query("UPDATE players SET EID = " . $this->eid . " WHERE CID = " . $this->CID . ";");
|
||||
$this->entity->x = $pk->x;
|
||||
$this->entity->y = $pk->y;
|
||||
$this->entity->y = $pk->y-0.9;
|
||||
$this->entity->z = $pk->z;
|
||||
if(($level = $this->server->api->level->get($this->data->get("spawn")["level"])) !== false){
|
||||
$this->spawnPosition = new Position($this->data->get("spawn")["x"], $this->data->get("spawn")["y"], $this->data->get("spawn")["z"], $level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue