World generation with biomes!

This commit is contained in:
Shoghi Cervantes
2015-03-22 22:57:40 +01:00
parent 1666602652
commit 9da26fdb88
23 changed files with 404 additions and 104 deletions

View File

@@ -616,7 +616,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$Z = null;
Level::getXZ($index, $X, $Z);
if(!$this->level->populateChunk($X, $Z)){
if(!$this->level->populateChunk($X, $Z, !$this->spawned or count($this->usedChunks) < ($this->viewDistance - 24))){
if($this->spawned){
continue;
}else{