Skip to content

Conversation

@Wuzzy2
Copy link
Contributor

@Wuzzy2 Wuzzy2 commented Jan 9, 2026

Fixes #3167.

This guarantees any player in a given bed is kicked out of it when it is destroyed, using the on_destruct callback.

This PR has also been tested with the bed being destroyed by fire.

Competing PR: #3168

@sfan5
Copy link
Member

sfan5 commented Jan 9, 2026

Will this update the sleep formspec for the affected player?
#3168 (comment)

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Jan 9, 2026

Ummm …
Well, NOW it does. 😁

Btw, for testing you might want to reduce the fire interval and disable the night skip so its easier to trigger the event of the bed being destroyed while you're in it.

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

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

master:
grafik

PR: (the formspec is closed too)
grafik

@sfan5 sfan5 merged commit b517bdb into luanti-org:master Jan 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Player starts levitating after I set them on fire while they are sleeping

3 participants