Updated TileEntity API [fixes #306]

This commit is contained in:
Shoghi Cervantes 2013-05-29 23:13:01 +02:00
parent 25de7a68d5
commit 450b5d9560
5 changed files with 10 additions and 53 deletions

View file

@ -1240,8 +1240,7 @@ class Player{
break;
}
$t = $this->server->api->tileentity->get(new Position($data["x"], $data["y"], $data["z"], $this->level));
if(($t[0] instanceof TileEntity) and $t[0]->class === TILE_SIGN){
$t = $t[0];
if(($t instanceof TileEntity) and $t->class === TILE_SIGN){
if($t->data["creator"] !== $this->username){
$t->spawn($this);
}else{