twoolie / NBT

Python Parser/Writer for the NBT file format, and it's container the RegionFile.
MIT License
361 stars 74 forks source link

Can't save .mca #169

Closed 9NONAGON closed 1 year ago

9NONAGON commented 1 year ago

I have a RegionFile object that I would like to save to file, but I can't seem to find any method to do that.

9NONAGON commented 1 year ago
with open(filename_out, "wb") as out_file:
        region_file.file.seek(0)
        out_file.write(region_file.file.read())
9NONAGON commented 1 year ago

Intended way to save to original file is just RegionFile.close