mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Nuke block extradata
this has been superseded by multi-layer blockstorages in 1.2.14+
This commit is contained in:
@ -448,19 +448,8 @@ class LevelDB extends BaseLevelProvider{
|
||||
|
||||
$this->db->put($index . self::TAG_DATA_2D, pack("v*", ...$chunk->getHeightMapArray()) . $chunk->getBiomeIdArray());
|
||||
|
||||
$extraData = $chunk->getBlockExtraDataArray();
|
||||
if(count($extraData) > 0){
|
||||
$stream = new BinaryStream();
|
||||
$stream->putLInt(count($extraData));
|
||||
foreach($extraData as $key => $value){
|
||||
$stream->putLInt($key);
|
||||
$stream->putLShort($value);
|
||||
}
|
||||
|
||||
$this->db->put($index . self::TAG_BLOCK_EXTRA_DATA, $stream->getBuffer());
|
||||
}else{
|
||||
$this->db->delete($index . self::TAG_BLOCK_EXTRA_DATA);
|
||||
}
|
||||
//this has been superseded by multi-layer block storages in 1.2.14+
|
||||
$this->db->delete($index . self::TAG_BLOCK_EXTRA_DATA);
|
||||
|
||||
//TODO: use this properly
|
||||
$this->db->put($index . self::TAG_STATE_FINALISATION, chr(self::FINALISATION_DONE));
|
||||
|
Reference in New Issue
Block a user