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

ProjectileHitEvent does not include BlockFace #11

Open
icezyclon opened this issue Apr 10, 2022 · 0 comments
Open

ProjectileHitEvent does not include BlockFace #11

icezyclon opened this issue Apr 10, 2022 · 0 comments

Comments

@icezyclon
Copy link

Problem:
ProjectileHitEvent does not include the face variable - from which direction a block was shot.
When parsing the ProjectileHitEvent with the Python mcpi API, this leads either to an exception if no entity was shot (because too few arguments were provided) or the shooter id is actually consumed by the face variable, which then looks like the entity shot was the shooter.

Location in code:

Solution:
Simply send the BlockFace after sending the location but before sending the player unique id.

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

No branches or pull requests

1 participant