Implemented nametags

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-01 15:02:36 +01:00
parent 198a0e69de
commit eaa3006d51
2 changed files with 17 additions and 7 deletions

View file

@ -637,14 +637,9 @@ class CustomPacketHandler{
break;
case MC_ADVENTURE_SETTINGS:
if($this->c === false){
$this->data["x"] = Utils::readShort($this->get(2));
$this->data["y"] = ord($this->get(1));
$this->data["z"] = Utils::readShort($this->get(2));
for($i = 0; $i < 4; ++$i){
$this->data["line$i"] = $this->get(Utils::readLShort($this->get(2), false));
}
$this->data["flags"] = Utils::readInt($this->get(4));
}else{
$this->raw .= "\xff";
$this->raw .= Utils::writeInt($this->data["flags"]);
}
break;
default: