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

AddFaceDirection undefined behavior fix #5463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schmarti7777771
Copy link

This change is in response to #5441. This will cause the function AddFaceDirection to return the original position when called with an invalid eBlockFace, rather than crashing the server. An alternative solution is proposed by madmaxoft in a comment on the original issue, which is unfortunately not within my ability to implement at this time, so that may be worth considering as well.

Copy link
Member

@12xx12 12xx12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't fix the underlying issue. See #5444 for more info

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.

None yet

2 participants