mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Fixed thread generator crashing, added thread generator garbage collector, fixed generation queues
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user