some fixes?

This commit is contained in:
GameHerobrine 2023-03-07 22:33:36 +03:00
parent 1a8ef21f19
commit 1d6f5be6dc

View file

@ -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;