This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-14 23:46:22 +02:00
parent c27cca6741
commit 24c0e2742a
8 changed files with 16 additions and 30 deletions

View file

@ -84,8 +84,8 @@ class TileEntityAPI{
public function add(Level $level, $class, $x, $y, $z, $data = array()){
$id = $this->tCnt++;
$this->tileEntities[$id] = new TileEntity($id, $class, $x, $y, $z, $data);
$this->spawnToAll($id);
$this->tileEntities[$id] = new TileEntity($level, $id, $class, $x, $y, $z, $data);
$this->spawnToAll($level, $id);
return $this->tileEntities[$id];
}