mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
dungeon generator(disabled)
This commit is contained in:
parent
9abc3cd409
commit
60fd866de6
11 changed files with 157 additions and 30 deletions
|
|
@ -540,7 +540,7 @@ class Player{
|
|||
}
|
||||
}
|
||||
|
||||
if(is_array($this->lastChunk)){
|
||||
/*if(is_array($this->lastChunk)){
|
||||
$tiles = $this->server->query("SELECT ID FROM tiles WHERE spawnable = 1 AND level = '" . $this->level->getName() . "' AND x >= " . ($this->lastChunk[0] - 1) . " AND x < " . ($this->lastChunk[0] + 17) . " AND z >= " . ($this->lastChunk[1] - 1) . " AND z < " . ($this->lastChunk[1] + 17) . ";");
|
||||
$this->lastChunk = false;
|
||||
if($tiles !== false and $tiles !== true){
|
||||
|
|
@ -551,7 +551,7 @@ class Player{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
$c = key($this->chunksOrder);
|
||||
$d = $c != null ? $this->chunksOrder[$c] : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue