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

Set propper gamemode abilities, resolves #367 #369

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Commandcracker
Copy link
Contributor

@Commandcracker Commandcracker commented Dec 4, 2024

Description

Set propper gamemode abilities, resolves #367

Testing

Tired out with /kill, still able to flying

Checklist

Things need to be done before this Pull Request can be merged.

  • Code is well-formatted and adheres to project style guidelines: cargo fmt
  • Code does not produce any clippy warnings: cargo clippy
  • All unit tests pass: cargo test
  • I added new unit tests, so other people don't accidentally break my code by changing other parts of the codebase. How?

@Commandcracker
Copy link
Contributor Author

See net.minecraft.world.GameMode#setAbilities

@Snowiiii
Copy link
Owner

Snowiiii commented Dec 6, 2024

Looks good. Forgot to set the abilities when changing gamemode.
Thanks @Commandcracker 👍

@Snowiiii Snowiiii merged commit 87f09f2 into Snowiiii:master Dec 6, 2024
9 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.

player in creative does not fly after /kill
2 participants