mojira.dev
MC-197197

Game crashes/freezes after creating/entering a Superflat world without presets

When create a superflat world without presets, it crashes.

1.16.2-pre2

Description: Ticking player

java.lang.IllegalStateException: Unregistered biome
at bw.b(SourceFile:88)
at java.base/java.util.Optional.orElseThrow(Optional.java:385)
at bw.a(SourceFile:88)
at bw.a(SourceFile:68)
at bx$a.a(SourceFile:55)
at bx.a(SourceFile:31)
at ck.a(SourceFile:62)
at bx.a(SourceFile:31)
at aah.v_(SourceFile:484)
at aay.b(SourceFile:207)
at nd.a(SourceFile:234)
at aax.c(SourceFile:173)
at net.minecraft.server.MinecraftServer.b(SourceFile:881)
at net.minecraft.server.MinecraftServer.a(SourceFile:810)
at emy.a(SourceFile:92)
at net.minecraft.server.MinecraftServer.w(SourceFile:669)
at net.minecraft.server.MinecraftServer.a(SourceFile:254)
at java.base/java.lang.Thread.run(Thread.java:844)

1.16.2-pre3

[18:07:58] [Render thread/WARN]: Received invalid biome id: -1

Linked issues

Attachments

Comments 8

Hi there!

I can reproduce in 1.16.2pr2.

A bit more information:

The preset name for a standard superflat world in 1.16.2pr2 is minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;null.

The preset name for a standard superflat world in any earlier version is
minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;minecraft:plains.

Since 'null' is not a valid biome, the game crashes. This is likely also the cause in MC-197122.

Workaround:

Click 'Customize', then click 'Presets', then click on 'Classic Flat'.

The issue is only present if no preset is actually selected, and the game just chooses the default preset.

So because it can't find 'null' biomes,cause to it crashes?

Hello!

Yeah, that seems to be the issue.

Instead of crashing, the game now freezes and spams "Received invalid biome id: -1" over and over again when trying to create a superflat world. Checking the superflat preset code still shows "null" instead of "minecraft:plains".

Still not fixed in 1.16.2

just to make sure: it generates the same crash report?

Bug seeker

(Unassigned)

Confirmed

Very Important

Crash

crash, superflat

1.16.2 Pre-release 2, 1.16.2 Pre-release 3

1.16.2 Release Candidate 1

Retrieved