mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
some missing features readded, fixed containers
This commit is contained in:
parent
faf788e2d5
commit
e6effaa6d9
2 changed files with 6 additions and 6 deletions
|
|
@ -1473,7 +1473,7 @@ class Player{
|
|||
$pos = new Position($this->entity->x, $this->entity->y, $this->entity->z, $this->level);
|
||||
//}
|
||||
$pData = $this->data->get("position");
|
||||
$this->server->schedule(20, array($this, "teleport"), $pos);
|
||||
//$this->server->schedule(20, array($this, "teleport"), $pos);
|
||||
//$this->teleport($pos, isset($pData["yaw"]) ? $pData["yaw"] : false, isset($pData["pitch"]) ? $pData["pitch"] : false, true, true);
|
||||
$this->entity->setHealth($this->data->get("health"), "spawn", true);
|
||||
$this->spawned = true;
|
||||
|
|
@ -1490,11 +1490,11 @@ class Player{
|
|||
foreach($array as $msg){
|
||||
$this->sendChat($msg."\n");
|
||||
}
|
||||
|
||||
/*$this->sendInventory();
|
||||
$this->sendSettings();*/
|
||||
$this->orderChunks();
|
||||
//$this->getNextChunk($this->level);
|
||||
//$this->getNextChunk($this->level);
|
||||
$this->sendInventory();
|
||||
$this->sendSettings();
|
||||
$this->teleport($pos);
|
||||
$this->loadAllChunks();
|
||||
$this->blocked = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ContainerOpenPacket extends RakNetDataPacket{
|
|||
$this->reset();
|
||||
$this->putByte($this->windowid);
|
||||
$this->putByte($this->type);
|
||||
$this->putByte($this->slots);
|
||||
$this->putShort($this->slots);
|
||||
$this->putInt($this->x);
|
||||
$this->putInt($this->y);
|
||||
$this->putInt($this->z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue