mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
LevelDB: simplify condition
This commit is contained in:
parent
1b9c282194
commit
b33a9690e9
@ -303,8 +303,7 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
$previous = $decoded;
|
$previous = $decoded;
|
||||||
if($nextIndex <= Chunk::MAX_SUBCHUNK_INDEX){ //older versions wrote additional superfluous biome palettes
|
if($nextIndex <= Chunk::MAX_SUBCHUNK_INDEX){ //older versions wrote additional superfluous biome palettes
|
||||||
$result[$nextIndex++] = $decoded;
|
$result[$nextIndex++] = $decoded;
|
||||||
}
|
}elseif($stream->feof()){
|
||||||
if($stream->feof() && $nextIndex >= Chunk::MAX_SUBCHUNK_INDEX){
|
|
||||||
//not enough padding biome arrays for the given version - this is non-critical since we discard the excess anyway, but this should be logged
|
//not enough padding biome arrays for the given version - this is non-critical since we discard the excess anyway, but this should be logged
|
||||||
$logger->error("Wrong number of 3D biome palettes: expected $expectedCount, but got " . ($i + 1) . " - this is not a problem, but may indicate a corrupted chunk");
|
$logger->error("Wrong number of 3D biome palettes: expected $expectedCount, but got " . ($i + 1) . " - this is not a problem, but may indicate a corrupted chunk");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user