Support for snapshot 21w43a (Minecraft 1.18)#169
Conversation
|
Thank you! I'll try to look into this the following days but I'm in a busy week. |
|
Update : 1.18 pre-release 1 is out today, no other changes to report. Yay ! |
|
Update 1.18 will be released tomorrow, and there is no other change to world storage. Yay ! ^^ If you have some time, you can test this PR, and merge it if it's okay for you. |
|
Again, thank you for keeping track of the changes, I'll review this soon. I can review the code and test with the worlds I have around in a few days (this weekend if the week keeps being so busy). |
|
You're welcome. Take your time for testing ! ^^ |
|
Trying this out with a 1.5 world that was migrated forward through each major Minecraft version to 1.18 and I'm running into the following exception, not sure if this is relevant but noticed it's from |
|
Hello @prenetic ! ^^ Because |
|
Yes that's correct, I receive |
|
Thank you for those files. If I'm correct, this is an 1.18 world ? |
|
@prenetic It should be fixed now. ^^ |
This is a VERY old world, I don't know exactly how old, but it was created pre-Anvil. I upgraded through every major release since then, and is currently a loaded as a 1.18 world. I'll give your latest update another shot in the morning (it's late here), but if you don't hear back then no news is good news. :) |
|
Grabbed the latest and gave it another shot (through |
|
Thank you for this new test. |
|
Hello! I'll dive into this and try to help this weekend. @734F96, thanks!! |
In this snapshot, the "Level" tag doesn't exist anymore
It means that for region chunks (Not entities or POI), data is now stored at the root of the chunk
Changes in the code :
- Detect chunk type with a function ("get_chunk_type()"), to avoid code duplication
- Adjustements on REGION chunks which do not have the "Level" tag
- Fix entities deletion in 1.17 entities chunks and 1.18 level chunks (Which shouldn't happen)
Important note : I use the tag "DataVersion", which I think is the best thing to do
|
Merged! Thank you! |
|
I want to do a few more test with old and broken worlds, but I have delayed this enough. |
|
Hello ! You're welcome @Fenixin ! ^^ |
|
@Fenixin |
|
Ups! I'm really sorry! I've just fixed it! |
|
@Fenixin No problem, thanks for the fix. :D |
Hello ! ^^
In the 1.18 snapshot 21w43a, the
Leveltag doesn't exist anymore.It means that for region chunks (Not entities or POI), data is now stored at the root of the chunk.
Changes in the code :
get_chunk_type()).Leveltag.Wiki : https://minecraft.fandom.com/wiki/Java_Edition_21w43a
Important note : I use the tag
DataVersion, which I think is the best thing to do.I don't know if Mojang will make other changes, but just in case, please do not merge this PR yet, I think it's better to wait.
Have a nice day ! ^^