9 Commits (3f6063b24a603d3327f2a83029a8e9627043d45b)

Author SHA1 Message Date
trivernis 3f6063b24a
Improve shifting by partial shifting on multiple operations
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 4842b9f346
Fix shifting of chunks to occupy unused space
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis eb88a39b9a
Add optional deletion of corrupted chunks and region files
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 687201d164
Fix memory leak and wrong nbt scan results
Fix a memory leak error caused by incorrect parsign of ByteArrays.
ByteArrays are now skipped completely when parsing nbt data since they
take up a lot of memory. The NBT Data is now parsed dynamically from
the BufReader of the file rather than using a preallocated slice.

Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f5ad767d22
Add scanning of chunk data in nbt format
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 2addee7348
Add fixing of compression method
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 9d35c5772d
Add scan commmand that also fixes lengths
The scan command looks for different section counts in the locations
table and optionally fixes it.

Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a43301074d
Add metadata for crates.io
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 6fd1293e4a
Add subcommand to get the number of chunks inside a world folder
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago