Setting the playerssleepingpercentage gamerule to 0 or on negative numbers skips the sleeping animation
The playerssleepingpercentage gamerule has been added to Bedrock on 1.20.20.21 Preview. However, when you set the gamerule to 0 or lower to the negative numbers, the sleeping animation would be skipped when you try to sleep in the bed.
Steps to Reproduce
1. Set the gamerule to 0 with this command:
/gamerule playerssleepingpercentage 0
2. Set the in-game time to midnight.
3. Get a bed and sleep.
Expected Result
You should sleep normally with the sleeping animation.
Observed Result
The sleeping animation is instantly skipped.
2023-07-12, 07:42 PM
2023-09-19, 07:47 PM
2023-09-19, 07:47 PM
2
2
1073493