Closed jonajames closed 4 years ago
If you use an OpaqueRegistry
I think you need to pass a max_bits
value rather than None
. In recent versions of minecraft this is 14
, in older versions its 13
IIRC.
Thanks for the reply. The registry is actually never used (if I understand the thing correctly) because I do not encode blocks, I just use the string ids. I also noticed that converting a nonsense file gives the same result, so maybe the chunk was just corrupted?
I'm closing this btw...
It's a fair point that you shouldn't need to know max_bits
when working with on-disk data, because on-disk the world always uses a palette.
I'm considering reworking chunk support for 1.16 so I'll keep this in mind.
I wrote a script that reads an mca file and print its content block-by-block When importing a large map my application crashes like so:
This is my code:
Am I doing something wrong? Does it have something to do with the parameter of OpaqueRegistry?