Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-213665

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w14a
    • 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w10a
    • None
    • Confirmed
    • Crash, Custom Worlds
    • Very Important

      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 213665.json file
      3. Select Create New World
         Game crashes as world begins to generate

      Stack trace

      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)
      

            panda4994 [Mojang] Panda
            markderickson [Mod] markderickson
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: