-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
1.20.1 Use pose system for calculating the height of crouching instead of hardcoded values #4485
base: 1.20.1
Are you sure you want to change the base?
Conversation
Removing a public method from the API package. I'd say an Otherwise a simple and sane looking change. |
IPlayerContext does have access to the player entity, so you could just put the pose thing in the old function |
the problem is its static so I'm not sure how to even reference the IPlayerContext directly here since it doesn't have a instance reference. and if it was changed to non static it would still be a breaking change |
There is the possibility of EDIT: I've been tricked by an interface default implementation. |
yeah that long method call is just painful to read as is and feels very breakable lol. I think deprecating it is a better option here, and anyone using it should just refer to the entity itself in the same way the codebase does |
can this be done to the 1.19 branch? |
instead of using hardcoded crouching values, just use the built in method for geting a entitys eye height with a specific pose. Should close #4484 from personal testing
closes #4484