-
Notifications
You must be signed in to change notification settings - Fork 80
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
Obfuscate player health to other players #127
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a statement break under the found = true?
I'm unsure what happens if the HP is provided twice in the metadata, so it might be better to make sure that all metadata is checked. |
This seems like something that should be behind a config option |
already done check the code --' |
the code points to a config, but it doesn't create the config or declare how it's called in the file, so i'm not sure how that's going to even compile |
do it instead of complaining is simple enough |
You're requesting this code be merged upstream, and asking for comments and reviews from others. |
never requested to be included, I've already included it in nPaper: sathonay/nPaper#17 |
I assumed you were the original PR author just from a diff account, if that's not the case, then simply don't understand why you're interceding here to comments aimed at the PR original author. Good for you if you already fixed these changes and merged them into your own fork, but this is still @Beaness's PR requesting to merge this code here, and as i mentioned earlier, i'd be expecting the pr author to fix their changes before we can merge them. Have a nice day. |
Forgot to include the config file change in the commit. Will fix it once I got some time. |
Config change is now inside the patch |
This prevents clients knowing what another player their health is.
Obfuscation happens at entity tracker level & the health will always be obfuscated to 0.5 (unless you die).