mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Moved chunk population to async tasks, and no more cut trees!
This commit is contained in:
@ -221,6 +221,10 @@ class Chunk extends BaseFullChunk{
|
||||
$this->isGenerated = (bool) $value;
|
||||
}
|
||||
|
||||
public static function fromFastBinary($data, LevelProvider $provider = null){
|
||||
return self::fromBinary($data, $provider);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $data
|
||||
* @param LevelProvider $provider
|
||||
@ -272,6 +276,10 @@ class Chunk extends BaseFullChunk{
|
||||
}
|
||||
}
|
||||
|
||||
public function toFastBinary(){
|
||||
return $this->toBinary(false);
|
||||
}
|
||||
|
||||
public function toBinary($saveExtra = false){
|
||||
$chunkIndex = LevelDB::chunkIndex($this->getX(), $this->getZ());
|
||||
|
||||
|
Reference in New Issue
Block a user