Guest User

Untitled

a guest
May 4th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Error: Corruption: not an sstable (bad magic number)
  2. File: src/pocketmine/level/format/io/leveldb/LevelDB
  3. Line: 433
  4. Type: LevelDBException
  5.  
  6. Code:
  7. [424] $chunk->setGenerated(\true);
  8. [425] $chunk->setPopulated(\true);
  9. [426] $chunk->setLightPopulated($lightPopulated);
  10. [427]
  11. [428] return $chunk;
  12. [429] }
  13. [430]
  14. [431] protected function writeChunk(Chunk $chunk) : void{
  15. [432] $index = LevelDB::chunkIndex($chunk->getX(), $chunk->getZ());
  16. [433] $this->db->put($index . self::TAG_VERSION, \chr(self::CURRENT_LEVEL_CHUNK_VERSION));
  17. [434]
  18. [435] $subChunks = $chunk->getSubChunks();
  19. [436] foreach($subChunks as $y => $subChunk){
  20. [437] $key = $index . self::TAG_SUBCHUNK_PREFIX . \chr($y);
  21. [438] if($subChunk->isEmpty(\false)){ //MCPE doesn't save light anymore as of 1.1
  22. [439] $this->db->delete($key);
  23. [440] }else{
  24. [441] $this->db->put($key,
  25. [442] \chr(self::CURRENT_LEVEL_SUBCHUNK_VERSION) .
  26. [443] $subChunk->getBlockIdArray() .
Advertisement
Add Comment
Please, Sign In to add comment