Show blocks in hand to other players

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-25 17:25:48 +01:00
parent f987ff232b
commit 2d9c400392
2 changed files with 18 additions and 1 deletions

View File

@ -111,6 +111,11 @@ class Entity extends stdClass{
"y" => $this->y,
"z" => $this->z,
));
$player->dataPacket(MC_PLAYER_EQUIPMENT, array(
"eid" => $this->eid,
"block" => $this->player->equipment[0],
"meta" => $this->player->equipment[1],
));
break;
case ENTITY_ITEM:
$player->dataPacket(MC_ADD_ITEM_ENTITY, array(