Saving entities/tiles

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-15 23:20:44 +02:00
parent fb69cf3392
commit e0e724bcc3
4 changed files with 73 additions and 33 deletions

View file

@ -71,7 +71,7 @@ class TileEntityAPI{
$l = $this->server->query("SELECT ID FROM tileentities WHERE level = '".$level->getName()."';");
if($l !== false and $l !== true){
while(($t = $l->fetchArray(SQLITE3_ASSOC)) !== false){
$t = $this->get($e["ID"]);
$t = $this->getByID($t["ID"]);
if($t instanceof TileEntity){
$tileEntities[$t->id] = $t;
}