mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
php5 is dead, reverted some teleport tweaks, nullsafe is deprecated, cactus hitbox is fixed
This commit is contained in:
parent
2e374fb09c
commit
0c8b56e22b
11 changed files with 35 additions and 58 deletions
|
|
@ -166,24 +166,15 @@ class Player{
|
|||
foreach($this->level->entityList as $e){
|
||||
if($e->eid !== $this->entity->eid){
|
||||
if($e->isPlayer()){
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk = new MoveEntityPacket_PosRot();
|
||||
$pk->eid = $this->entity->eid;
|
||||
$pk->x = -256;
|
||||
$pk->y = 128;
|
||||
$pk->z = -256;
|
||||
$pk->yaw = 0;
|
||||
$pk->pitch = 0;
|
||||
$pk->bodyYaw = 0;
|
||||
$e->player->dataPacket($pk);
|
||||
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk->eid = $e->eid;
|
||||
$pk->x = -256;
|
||||
$pk->y = 128;
|
||||
$pk->z = -256;
|
||||
$pk->yaw = 0;
|
||||
$pk->pitch = 0;
|
||||
$pk->bodyYaw = 0;
|
||||
$this->dataPacket($pk);
|
||||
|
||||
}else{
|
||||
|
|
@ -243,7 +234,7 @@ class Player{
|
|||
$this->entity->calculateVelocity();
|
||||
if($terrain === true){
|
||||
$this->orderChunks();
|
||||
$this->server->schedule(1, [$this, "getNextChunk"], $this->level);
|
||||
$this->getNextChunk($this->level);
|
||||
}
|
||||
$this->entity->check = true;
|
||||
if($force === true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue