Skip to content

fix(interaction): forward bed wake command to Bedrock - #459

Merged
RaphiMC merged 1 commit into
ViaVersionAddons:mainfrom
StackAnvil:stackanvil/0035-forward-bed-wake-command-to-bedrock
Oct 19, 2026
Merged

RaphiMC merged 1 commit into
ViaVersionAddons:mainfrom
StackAnvil:stackanvil/0035-forward-bed-wake-command-to-bedrock

Conversation

@AlexProgrammerDE

Copy link
Copy Markdown
Collaborator

What this changes

Java sends STOP_SLEEPING when leaving a bed. Translate that command into Bedrock StopSleeping so the server can clear the sleeping state instead of disconnecting the session on an unhandled action.

This PR contains one patch from StackAnvil's viabedrock stack, applied alone to the pinned upstream base.

Review focus

Leaving a Java bed sends STOP_SLEEPING.
The upstream command switch falls through to its unhandled-action exception.
Add one case that sends Bedrock StopSleeping through the existing player-action helper.
Other command mappings remain unchanged.

Validation

bun run pr build viabedrock --patch 0035-forward-bed-wake-command-to-bedrock.patch passes, including compilation and Checkstyle.
The patch applies alone to the pinned upstream base and adds one production line.
A fresh live sleep/wake check was not part of this PR preparation.

Java sends STOP_SLEEPING when leaving a bed. Translate that command into Bedrock StopSleeping so the server can clear the sleeping state instead of disconnecting the session on an unhandled action.
@RaphiMC
RaphiMC merged commit 101ba2b into ViaVersionAddons:main Oct 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants