Mojira Archive
MC-235035

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

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.

Fixed

Vivian Jones

[Mojang] Gegy

2021-08-22, 07:26 PM

2023-10-09, 01:02 PM

2022-04-08, 03:00 PM

5

3

Confirmed

Important

Crash, Custom Worlds

custom-worldgen, data-pack

1.17.1, 1.18.2, 22w12a

22w15a