mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
LevelDB: fix doc comment handling for deserializeLegacyExtraData()
This commit is contained in:
parent
66aa940ed1
commit
117e46f639
@ -196,6 +196,12 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $index
|
||||||
|
* @param int $chunkVersion
|
||||||
|
*
|
||||||
|
* @return PalettedBlockArray[]
|
||||||
|
*/
|
||||||
protected function deserializeLegacyExtraData(string $index, int $chunkVersion) : array{
|
protected function deserializeLegacyExtraData(string $index, int $chunkVersion) : array{
|
||||||
if(($extraRawData = $this->db->get($index . self::TAG_BLOCK_EXTRA_DATA)) === false or $extraRawData === ""){
|
if(($extraRawData = $this->db->get($index . self::TAG_BLOCK_EXTRA_DATA)) === false or $extraRawData === ""){
|
||||||
return [];
|
return [];
|
||||||
@ -263,7 +269,6 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
case 4: //MCPE 1.1
|
case 4: //MCPE 1.1
|
||||||
//TODO: check beds
|
//TODO: check beds
|
||||||
case 3: //MCPE 1.0
|
case 3: //MCPE 1.0
|
||||||
/** @var PalettedBlockArray[] $convertedLegacyExtraData */
|
|
||||||
$convertedLegacyExtraData = $this->deserializeLegacyExtraData($index, $chunkVersion);
|
$convertedLegacyExtraData = $this->deserializeLegacyExtraData($index, $chunkVersion);
|
||||||
|
|
||||||
for($y = 0; $y < Chunk::MAX_SUBCHUNKS; ++$y){
|
for($y = 0; $y < Chunk::MAX_SUBCHUNKS; ++$y){
|
||||||
@ -346,7 +351,6 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
case 2: // < MCPE 1.0
|
case 2: // < MCPE 1.0
|
||||||
case 1:
|
case 1:
|
||||||
case 0: //MCPE 0.9.0.1 beta (first version)
|
case 0: //MCPE 0.9.0.1 beta (first version)
|
||||||
/** @var PalettedBlockArray[] $extraDataLayers */
|
|
||||||
$convertedLegacyExtraData = $this->deserializeLegacyExtraData($index, $chunkVersion);
|
$convertedLegacyExtraData = $this->deserializeLegacyExtraData($index, $chunkVersion);
|
||||||
|
|
||||||
$legacyTerrain = $this->db->get($index . self::TAG_LEGACY_TERRAIN);
|
$legacyTerrain = $this->db->get($index . self::TAG_LEGACY_TERRAIN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user