mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed head rotation
This commit is contained in:
parent
153894c368
commit
5fdf1f6b75
2 changed files with 8 additions and 6 deletions
|
|
@ -1051,8 +1051,7 @@ class Entity extends Position
|
|||
|
||||
public function sendHeadYaw(){
|
||||
$pk = new RotateHeadPacket;
|
||||
$pk->eid = $this->eid;
|
||||
$pk->yaw = $this->headYaw;
|
||||
$pk->entities = [[$this->eid, $this->headYaw]];
|
||||
$this->server->api->player->broadcastPacket($this->level->players, $pk);
|
||||
}
|
||||
|
||||
|
|
@ -1180,6 +1179,7 @@ class Entity extends Position
|
|||
}
|
||||
if($this->class === ENTITY_FALLING){
|
||||
$data["Tile"] = $this->data["Tile"];
|
||||
$data["Metadata"] = $this->data["Metadata"];
|
||||
}
|
||||
if($this->class === ENTITY_ITEM){
|
||||
$data["Item"] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue