mojira.dev
MC-213665

Crash upon attempting to generate a world with a height of 0 blocks

The bug

When attempting to generate a world with a height of 0 blocks, the game crashes.

An example settings file is attached, as well as the full crash report.

How to reproduce

  1. Select Singleplayer → Create New World → More World Options... → Import Settings

  2. Import the

[media]
  1.  file

  2. Select Create New World
    ❌  Game crashes as world begins to generate

Stack trace

21w03a: [^crash-2021-02-02_13.47.44-server.txt]

Description: Exception generating new chunk

java.lang.IllegalArgumentException: The value 0 is not in the specified inclusive range of 1 to 32
	at org.apache.commons.lang3.Validate.inclusiveBetween(Validate.java:1032)
	at afi.<init>(SourceFile:96)
	at afi.<init>(SourceFile:92)
	at clx.<init>(SourceFile:98)
	at cjq.c(SourceFile:313)
	at java.util.Map.computeIfAbsent(Map.java:957)
	at cjq.a(SourceFile:313)
	at cls.a(SourceFile:66)
	at cjb.f(SourceFile:71)
	at cjb$d.doWork(SourceFile:263)
	at cjb.a(SourceFile:219)
	at aai.a(SourceFile:562)
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
	at aai.a(SourceFile:556)
	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
	at aak.b(SourceFile:58)
	at aoz.e(SourceFile:94)
	at aoz.a(SourceFile:137)
	at aoz.run(SourceFile:105)
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Attachments

Comments 1

[Mod] markderickson

Panda4994

Confirmed

Very Important

Crash, Custom Worlds

21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w10a

21w14a

Retrieved