This commit is contained in:
GameHerobrine 2023-03-07 14:35:31 +03:00
parent b6da664236
commit eaa5390879
6 changed files with 134 additions and 83 deletions

View file

@ -138,7 +138,6 @@ class Level{
}
}
$chunkTiles = [];
console(strlen($orderedLight));
$tiles = $this->server->query("SELECT ID FROM tiles WHERE spawnable = 1 AND level = '".$this->getName()."' AND x >= ".($X * 16 - 1)." AND x < ".($X * 16 + 17)." AND z >= ".($Z * 16 - 1)." AND z < ".($Z * 16 + 17).";");
if($tiles !== false and $tiles !== true){
while(($tile = $tiles->fetchArray(SQLITE3_ASSOC)) !== false){