mojira.dev
MC-185021

Crash when worldgen dimension type presets are not unique

The bug

When there are multiple dimensions with the same dimension type, the game crashes. When type is a string, it is supposedly a preset for dimension options like ultrawarm, shrunk, etc. However it only one dimension can use the default values overworld, the_nether and the_end.

This is supposedly caused because the game uses the dimension type value in a hashmap. It should instead use the dimension key.

Relevant section in worldgen settings

"dimensions": {
  "minecraft:overworld": {
    ...
    "type": "minecraft:overworld"
  },
  "custom:overworld": {
    ...
    "type": "minecraft:overworld"
  }
}

How to reproduce

  1. Download the worldgen settings

[media]
  1. Create a new world and select the downloaded file when importing world settings
    ❌ The game crashes because the custom:overworld also used the overworld dimension type preset.

Linked issues

Attachments

Comments 2

I have so far closed all crashes with that stacktrace to MC-184653, does that ticket also explain your issue? I think it generally relates to invalid .json files.

@unknown Yes it does seem to be the same cause. Although I'd argue that this bug report contains the actual cause and analysis. The attached world settings in MC-184653 confirm that.

Misode

(Unassigned)

Unconfirmed

(Unassigned)

worldgen-settings

20w21a

Retrieved