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

Use the correct partialTick when ticking animations #677

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

Conversation

GizmoTheMoonPig
Copy link

@GizmoTheMoonPig GizmoTheMoonPig commented Feb 1, 2025

A continuation of #671 after I realized there was a better approach after surfing through the code again. This version of the PR passes the proper partialTick to handleAnimations as I found out the proper one is used everywhere EXCEPT the place that needs it most.

I only messed with this method as it was marked as internal so people shouldn't be messing with it anyway. I do however, recognize setCustomAnimations would also need partialTick passed in and I didn't want to do that since that one is an actual API method. I will either leave that for you guys to do or I can do it if the go ahead is given.

If this PR is accepted I will also open one for 1.21 if that's cool (EDIT: after looking over 1.21 it already does this. No need for another PR). 1.21 and 1.21.4 will also need partialTick passed into setCustomAnimations if thats done here too. Thanks for looking over this :)

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.

1 participant