4 Commits (687201d164664c360c12e8cbd208a76c31d79f83)

Author SHA1 Message Date
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