mojira.dev
MC-179952

Height map data doesn't get converted

The height map data for chunks is not converted when a world from pre 20w17a is upgraded to 20w17a.
The height map data is encoded the same way block states are. There is a converter for the block state data, but not for the height map data.
Here's a world created before 20w17a (invalid height map data):
https://i.imgur.com/0CC3lEg.jpg
And here's a world generated in 20w17a:
https://i.imgur.com/ZL3qvIe.jpg

Related issues

Attachments

Comments

migrated
[media][media]
migrated

You can resolve this problem by running

```--forceUpgrade --eraseCache```

migrated

How do you run --forceUpgrade and --eraseCache on singleplayer? Writing them as jvm parameters in launcher gives errors

HalbFettKäse

Not sure, but selecting "Singleplayer -> Edit -> Optimize World" might fix it, but I doubt that it also erases the cache.

migrated

Maybe I'm trying it in the wrong place but I downloaded my hosted world, (20w16a upgraded to 20w17a), tried to do an optimize world (with erase cache option) from the single player menu and the game crashes with

"The game crashed whilst mouseclicked event handler
Error: java.lang.NullPointerException: mouseClicked event handler"

I attached the crash report. Nothing stood out to me but it looks obfuscated

 

UPDATE:

I launched a server locally with the --forceUpgrade and --eraseCache args and I was able to bonemeal 2x2 trees.

I also found that I no longer had rain falling through my roof

 

UPDATE 2:
I found I still have some spots in my world where the height map is messed up.

migrated

I know this shows resolved...     But can someone. Please tell me where to enter the parameters ```--forceUpgrade --eraseCache```  I'm a little new to all of this and don't know how to fix my world. 

migrated

I am using the latest snapshot and this is still not resolved. 20w18a. For me the maps still show stone on them.

violine1101

As far as I'm aware, worlds opened in 20w17a will continue to be affected by this issue. Optimizing the world will probably fix that for worlds opened in that version.

migrated

I loaded my world into single player and ran through the "Optimize World" option. I hopped into game and I was seeing correct values with the height map. I then took the world, (copy world folder as well as backup and unzip) to my server (locally and hosted) and when I loaded the same world into the server the issues persisted and what was fixed in singleplayer was broken again running on a server.

 

UPDATE:

I tried creating a new world on a locally hosted server and it too had incorrect height map values

[media]
violine1101

@unknown, please create a new bug report about that and include as much information as possible.

migrated

@James Wade Petty these are server startup parameters

Gerrygames

boq

Confirmed

(Unassigned)

20w17a

20w18a

Retrieved