mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Updated leveldb implementation to support MCPE 1.1 worlds
This commit is contained in:
@ -46,11 +46,13 @@ class SubChunk implements SubChunkInterface{
|
||||
self::assignData($this->blockLight, $blockLight, 2048);
|
||||
}
|
||||
|
||||
public function isEmpty() : bool{
|
||||
public function isEmpty(bool $checkLight = true) : bool{
|
||||
return (
|
||||
substr_count($this->ids, "\x00") === 4096 and
|
||||
substr_count($this->skyLight, "\xff") === 2048 and
|
||||
substr_count($this->blockLight, "\x00") === 2048
|
||||
(!$checkLight or (
|
||||
substr_count($this->skyLight, "\xff") === 2048 and
|
||||
substr_count($this->blockLight, "\x00") === 2048
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user