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

Sleeping in a custom dimension with "natural" set to false causes crash

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.17.1, 1.18.2, 22w12a
    • 22w15a
    • None
    • Confirmed
    • Crash, Custom Worlds
    • Important

    Description

      The bug

      When creating a custom dimension in a datapack, setting "natural" to false and "bed_works" to true causes a fatal error to console when a player tries to sleep. Despite it being logged as a fatal error, the game doesn't crash, but players are unable to sleep.

      Attached is a world that demonstrates the issue, and a datapack that adds a dimension affected by it.

      Code analysis

      Code analysis by apple502j can be found in this comment.

      Attachments

        Issue Links

          Activity

            People

              gegy1000 [Mojang] Gegy
              PrismaticVoid Vivian Jones
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: