Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error: Corruption: not an sstable (bad magic number)
- File: src/pocketmine/level/format/io/leveldb/LevelDB
- Line: 433
- Type: LevelDBException
- Code:
- [424] $chunk->setGenerated(\true);
- [425] $chunk->setPopulated(\true);
- [426] $chunk->setLightPopulated($lightPopulated);
- [427]
- [428] return $chunk;
- [429] }
- [430]
- [431] protected function writeChunk(Chunk $chunk) : void{
- [432] $index = LevelDB::chunkIndex($chunk->getX(), $chunk->getZ());
- [433] $this->db->put($index . self::TAG_VERSION, \chr(self::CURRENT_LEVEL_CHUNK_VERSION));
- [434]
- [435] $subChunks = $chunk->getSubChunks();
- [436] foreach($subChunks as $y => $subChunk){
- [437] $key = $index . self::TAG_SUBCHUNK_PREFIX . \chr($y);
- [438] if($subChunk->isEmpty(\false)){ //MCPE doesn't save light anymore as of 1.1
- [439] $this->db->delete($key);
- [440] }else{
- [441] $this->db->put($key,
- [442] \chr(self::CURRENT_LEVEL_SUBCHUNK_VERSION) .
- [443] $subChunk->getBlockIdArray() .
Advertisement
Add Comment
Please, Sign In to add comment