Added core NBT modifications

This commit is contained in:
Shoghi Cervantes
2014-02-26 15:12:58 +01:00
parent 0231bf406e
commit 9cfa49c112
17 changed files with 122 additions and 99 deletions

View File

@@ -2250,12 +2250,11 @@ class Player{
$t->spawn($this);
}else{
$nbt = new NBT();
$nbt->load($packet->namedtag);
$d = array_shift($nbt->tree);
if($d["id"] !== TILE_SIGN){
$nbt->read($packet->namedtag);
if($nbt->id !== TILE_SIGN){
$t->spawn($this);
}else{
$t->setText($d["Text1"], $d["Text2"], $d["Text3"], $d["Text4"]);
$t->setText($nbt->Text1, $nbt->Text2, $nbt->Text3, $nbt->Text4);
}
}
}