Generator works!

This commit is contained in:
Shoghi Cervantes
2015-03-15 16:40:18 +01:00
parent 5bfc747622
commit d5601b0c9f
19 changed files with 317 additions and 182 deletions

View File

@ -295,13 +295,9 @@ class McRegion extends BaseLevelProvider{
}
protected function loadRegion($x, $z){
if(isset($this->regions[$index = Level::chunkHash($x, $z)])){
return true;
if(!isset($this->regions[$index = Level::chunkHash($x, $z)])){
$this->regions[$index] = new RegionLoader($this, $x, $z);
}
$this->regions[$index] = new RegionLoader($this, $x, $z);
return true;
}
public function close(){