Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited height on write region file #56

Open
MorningStar3600 opened this issue Jan 15, 2021 · 0 comments
Open

Limited height on write region file #56

MorningStar3600 opened this issue Jan 15, 2021 · 0 comments

Comments

@MorningStar3600
Copy link

When we (a friend of mine and me) are working on project (using your library).
We need to write blocs in a mcafile, using the 'setBlockStateAt' function. But, when the second argument (y) go above 17, there is an error :

-> Exception in thread "main" java.lang.NullPointerException: Cannot invoke "net.querz.nbt.tag.ListTag.size()" because "this.palette" is null
at net.querz.mca.Section.setBlockStateAt(Section.java:132)
at net.querz.mca.Chunk.setBlockStateAt(Chunk.java:313)
at net.querz.mca.MCAFile.setBlockStateAt(MCAFile.java:265)
at magicbox.Test.main(Test.java:31)

There is the code involved :
image

Is this an error, or is there something we're doing wrong ?

Anyway, this library is game-changing, thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant