Fixed thread generator crashing, added thread generator garbage collector, fixed generation queues

This commit is contained in:
Shoghi Cervantes
2014-06-14 23:59:31 +02:00
parent 30318569e1
commit 6977833b1a
6 changed files with 90 additions and 17 deletions

View File

@@ -1144,6 +1144,10 @@ class Level implements ChunkManager, Metadatable{
}
public function setChunk($x, $z, SimpleChunk $chunk){
$index = Level::chunkHash($x, $z);
foreach($this->getUsingChunk($x, $z) as $player){
$player->setChunkIndex($index, 0xff);
}
$this->provider->setChunk($x, $z, $chunk);
}