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

Consistently picks up Powder Snow after fall #4761

Merged
merged 6 commits into from
Jul 21, 2024

Conversation

AnandBhasme
Copy link
Contributor

@AnandBhasme AnandBhasme commented Jul 20, 2024

Type of change

  • [✔] Bug fix
  • [] New feature

Description

Earlier, player wasn't picking up powder snow if it was wearing leather boots. Now it checks whether it has powder snow below it.

Related issues

Not aware of any. I checked the issues

How Has This Been Tested?

Tried in various cases. Consistently successful

Checklist:

  • [✔] My code follows the style guidelines of this project.
  • [✔] I have added comments to my code in more complex areas.
  • [✔] I have tested the code in both development and production environments.

@MineGame159
Copy link
Member

MineGame159 commented Jul 20, 2024

Ok well I tried the PR and it seems to work in good conditions, but I have some concers.

  1. Isn't it possible for it to pick up the block before the player actually lands? It might be good to only pick it up after the player is touching the ground.
  2. Also it might be good to only check the block below if the target is powder snow. It might be possible to pick up for example a water source block before the player lands in it.

Again, none of those things happened in my singleplayer testing, I am just wondering if they could happen in for example worse netwrok conditions on a server. Since in theory they are possible.

@MineGame159
Copy link
Member

Revert that Auto Log commit.

  1. Don't do multiple features in a single PR.
  2. Hardcoding that feature for just TNT minecarts is stupid. It should be an entity type list setting allowing the user to choose which entity to check for.

@AnandBhasme AnandBhasme changed the title Consistently picks up Powder Snow after fall Consistently picks up Powder Snow after fall and adds TNT minecart to AutoLog Jul 21, 2024
@AnandBhasme AnandBhasme changed the title Consistently picks up Powder Snow after fall and adds TNT minecart to AutoLog Consistently picks up Powder Snow after fall Jul 21, 2024
@AnandBhasme
Copy link
Contributor Author

AnandBhasme commented Jul 21, 2024

  1. Don't do multiple features in a single PR.

Thats what I asked on Discord and you said to just Push. But alright I will remember from next time.

  1. Hardcoding that feature for just TNT minecarts is stupid. It should be an entity type list setting allowing the user to choose which entity to check for.

Will the entity type list be holistic or only the harmful entities? Will the setting for number of entities and range be different for each or common to all?

@MineGame159 MineGame159 merged commit f99666f into MeteorDevelopment:master Jul 21, 2024
1 check passed
@MineGame159
Copy link
Member

Oh sorry, I didn't bother looking up the issue number you sent in the discord message and just assumed you meant the changes in response to my first comment on this PR.

As for the entity list. I would not limit it to harmful entities only, if the user wants to log on a pig entering the render distance, let them. And for the range and count, I think it's enough if they are global for all entities combined.

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.

2 participants