mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Updated TileEntity API [fixes #306]
This commit is contained in:
parent
25de7a68d5
commit
450b5d9560
5 changed files with 10 additions and 53 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue