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

Player_api: Various maintenance #2737

Merged
merged 1 commit into from
Sep 9, 2020
Merged

Player_api: Various maintenance #2737

merged 1 commit into from
Sep 9, 2020

Conversation

paramat
Copy link
Contributor

@paramat paramat commented Aug 31, 2020

Player_api: Various maintenance

Clear 'player_sneak' and 'player_api.player_attached' table values
when player leaves.
Remove unnecessary commas and whitespace.
Fix table name in 'game_api.txt'.
Clean up documentation in 'game_api.txt'.

/////////////////////////////////

I have been working on developing and cleaning up the player_api mod for use in new games and my own games. While doing so i noticed some mess and some forgotten table clearing when a player leaves, so here is a small PR.

Clear 'player_sneak' and 'player_api.player_attached' table values
when player leaves.
Remove unnecessary commas and whitespace.
Fix table name in 'game_api.txt'.
Clean up documentation in 'game_api.txt'.
@paramat paramat added Trivial and removed WIP labels Sep 2, 2020
@paramat
Copy link
Contributor Author

paramat commented Sep 2, 2020

Tested with a local server, with a player sneaking, using a boat, leaving, rejoining, to check the table clearing has no bad effect.
PR is fairly trivial, will merge in a week in case any core dev wants to check 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.

LGTM.

@sfan5 sfan5 merged commit 8d0fb34 into minetest:master Sep 9, 2020
@paramat paramat deleted the papistuff branch November 4, 2020 15:31
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.

3 participants