Skip to content

Apply the sleep flag to straw beds - #2324

Merged
me4502 merged 1 commit into
EngineHub:version/7.0.xfrom
Daniel3032:version/7.0.x
Nov 1, 2026
Merged

me4502 merged 1 commit into
EngineHub:version/7.0.xfrom
Daniel3032:version/7.0.x

Conversation

@Daniel3032

Copy link
Copy Markdown
Contributor

Straw beds (added in 26.3) aren't in Tag.BEDS, so Materials.isBed didn't match them and the sleep flag was never checked. Since straw beds break after one use, players could destroy them in regions with sleep denied.

This makes isBed also match Material.STRAW_BED, so straw beds get the same interact + sleep check as regular beds.

Tested on Purpur 26.3: with sleep deny, non-members can no longer use straw beds.

@me4502 me4502 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR :)

@me4502
me4502 merged commit 1dea00d into EngineHub:version/7.0.x Nov 1, 2026
2 checks 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.

2 participants