Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Support for adding a Chunk (not EmptyChunk) to an EmptyRegion #11

Closed
brychrwolf opened this issue Jun 7, 2020 · 1 comment
Closed

Comments

@brychrwolf
Copy link

Hello,

I would like to use your project to iterate over all mca files in a folder, and only save chunks which match a list coordinates. The problem I have is that there is no way to pass the output of getchunk, to setchunk as you know, Chunks are not EmptyChunks.

No errors actually occur until I call save which tries to access sections... which don't exist the same in both types. I tried iterating over over all blocks in a chunk, and adding them to an EmptyRegion with set_block, and its almost okay, except some things are invisible (like signs).

Is there any way you could make it possible to pass add a Chunk to an EmptyRegion and then be able to save that to a file?

matcool added a commit that referenced this issue Jun 8, 2020
@matcool
Copy link
Owner

matcool commented Jun 8, 2020

Added in 0c886f4

@matcool matcool closed this as completed Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants