LevelDB: clearer error message

This commit is contained in:
Dylan K. Taylor 2023-07-19 16:31:10 +01:00
parent b33a9690e9
commit 86810c5e1c
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -305,7 +305,7 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
$result[$nextIndex++] = $decoded;
}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");
$logger->error("Wrong number of 3D biome palettes for this chunk version: expected $expectedCount, but got " . ($i + 1) . " - this is not a problem, but may indicate a corrupted chunk");
break;
}
}catch(BinaryDataException $e){