twoolie / NBT

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

Not a gzipped file when trying to open a region file #121

Closed misode closed 5 years ago

misode commented 5 years ago

I'm trying to read a region file with region = nbt.nbt.NBTFile(file), but it's giving an error OSError: Not a gzipped file. How can I read my region files?

Edit: turns out I need to use nbt.region.RegionFile(file), sorry :/