Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
While working on #75852 I noticed that you can try to fall asleep while floating in mid-air. This didn't seem intended, but it was out of scope for that PR, so I didn't do anything about it. I'm doing something about it now.
Describe the solution
I added an additional check to
handle_action::sleep
for theNO_FLOOR
tag. You can no longer skeep (sky sleep) without valid comfort data, just like trying to sleep inDEEP_WATER
.Describe alternatives you've considered
Has anyone ever even tried to skeep? I'm pretty sure this PR is fixing a problem no one has actually had.
Testing
I gave myself MoM's levitation effect, flew up into the air, and tried to sleep. Before the change it let me, after the change it didn't.
Additional context
To skeep successfully, just add something like the following comfort data to a mutation: