Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no sq] Kick players from beds that have ceased existing #3168

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

appgurueu
Copy link
Contributor

Fixes #3167. Done via a globalstep, which is not a concern. I believe this to be the most straightforward approach; it is unrealistic to efficiently hook all possible ways the node could be removed.

@appgurueu appgurueu changed the title Kick players from beds that have ceased existing [no sq] Kick players from beds that have ceased existing Nov 15, 2024
@sfan5
Copy link
Member

sfan5 commented Nov 15, 2024

I have no issues with this approach but shouldn't on_destruct be enough actually? (except vmanips)

mods/beds/functions.lua Outdated Show resolved Hide resolved
@appgurueu
Copy link
Contributor Author

I have no issues with this approach but shouldn't on_destruct be enough actually? (except vmanips)

I think so, yes. VoxelManips might appear naturally in gameplay though, e.g. explosions - you still want the player to be kicked from bed when it was blown up (we could now start with on_blast etc, but that puts us back in the catch all situation).

@SmallJoker
Copy link
Member

The sleep formspec does neither get closed nor updated on kick. Is that intentional? Granted, it does precisely fix the linked issue.

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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