mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
some fixes?
This commit is contained in:
parent
1a8ef21f19
commit
1d6f5be6dc
1 changed files with 2 additions and 7 deletions
|
|
@ -191,13 +191,8 @@ class Player{
|
|||
$terrain = true;
|
||||
foreach($this->level->players as $player){
|
||||
if($player !== $this and $player->entity instanceof Entity){
|
||||
$pk = new MoveEntityPacket_PosRot;
|
||||
$pk->eid = $player->entity->eid;
|
||||
$pk->x = $player->entity->x;
|
||||
$pk->y = $player->entity->y;
|
||||
$pk->z = $player->entity->z;
|
||||
$pk->yaw = $player->entity->yaw;
|
||||
$pk->pitch = $player->entity->pitch;
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk->entities = [[$player->entity->eid, $player->entity->x, $player->entity->y, $player->entity->z, $player->entity->yaw, $player->entity->pitch]];
|
||||
$this->dataPacket($pk);
|
||||
|
||||
$pk = new PlayerEquipmentPacket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue