mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Saving entities/tiles
This commit is contained in:
parent
fb69cf3392
commit
e0e724bcc3
4 changed files with 73 additions and 33 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue