-
Notifications
You must be signed in to change notification settings - Fork 48
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
Old region files crash #50
Comments
HeightMap might also cause problems. |
This happens when a world has been updated using This library only supports the "new" block format used in 1.13 and above. From what version do you intend to update your world? |
Experiencing the same issue, except for some reason it's happening on a more modern version of Minecraft. The world originally started on 1.8 and was gradually updated to 1.15.2.
|
I'm also experiencing this issue. My world is also originally from 1.8 and was gradually updated to 1.16.4. |
@DerTyan |
Or u? |
Sorry for the late response, but unfortunately I didn't solve the problem. I ended up saying "frick it", and using a completely different programming language instead. |
Has anyone solved this problem by any chance? |
I'm trying to use your library to read some old region files and the next error is being thrown.
java.lang.ClassCastException: Cannot cast net.querz.nbt.tag.LongArrayTag to net.querz.nbt.tag.ListTag
at java.lang.Class.cast(Class.java:3369) ~[?:1.8.0_161]
at net.querz.nbt.tag.CompoundTag.get(CompoundTag.java:74) ~[?:?]
at net.querz.nbt.tag.CompoundTag.getListTag(CompoundTag.java:124) ~[?:?]
at net.querz.mca.Chunk.initReferences(Chunk.java:79) ~[?:?]
at net.querz.mca.Chunk.deserialize(Chunk.java:178) ~[?:?]
at net.querz.mca.MCAFile.deserialize(MCAFile.java:61) ~[?:?]
at net.querz.mca.MCAUtil.read(MCAUtil.java:60) ~[?:?]
at net.querz.mca.MCAUtil.read(MCAUtil.java:26) ~[?:?]
It is caused by Entities being an array of bytes in versions prior 1.10 (as can be seen in https://minecraft.gamepedia.com/Chunk_format).
Fixing this might lead to other errors since other fields were arrays in older versions (TileEntities, TileTicks and LiquidTicks).
Is there any way to read it? My intention is to update those fields to the new format since using forceUpgrade didn't work, so only adding a way to load the chunk with the current data structure would be fine. If that can't be done, just loading everything but those values is fine for me since I don't need them for anything.
The text was updated successfully, but these errors were encountered: