I'm trying to save some edits I did to a chunk, but it's giving struct.error: required argument is not an integer for that last line. I can't find any examples that use the write_chunk method.
region = nbt.region.RegionFile(file)
for m in region.get_metadata():
chunk = region.get_chunk(m.x, m.z)
# do stuff with the chunk
region.write_chunk(m.x, m.z, chunk)
I'm trying to save some edits I did to a chunk, but it's giving
struct.error: required argument is not an integer
for that last line. I can't find any examples that use thewrite_chunk
method.