mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +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;
|
||||
if($nextIndex <= Chunk::MAX_SUBCHUNK_INDEX){ //older versions wrote additional superfluous biome palettes
|
||||
$result[$nextIndex++] = $decoded;
|
||||
}
|
||||
if($stream->feof() && $nextIndex >= Chunk::MAX_SUBCHUNK_INDEX){
|
||||
}elseif($stream->feof()){
|
||||
//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");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user