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

1.20.4 #325

Merged
merged 2 commits into from
Feb 22, 2024
Merged

1.20.4 #325

merged 2 commits into from
Feb 22, 2024

Conversation

Avilad
Copy link
Contributor

@Avilad Avilad commented Feb 21, 2024

Description

Update for 1.20.4

Related Issue

#310

Motivation and Context

AutoFarm crashes on 1.20.4 when using the 1.20.2 build

How Has This Been Tested?

Built it, loaded it, AutoFarm works great now and I haven't noticed any other crashes. Haven't tested anything else

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My code follows the code style of this project.
  • Have you successfully ran tests with your changes locally?

loader_version=0.14.24
minecraft_version=1.20.4
yarn_version=1.20.4+build.3
loader_version=0.15.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what the "correct" loader version to use is, I went with the same version meteor-client is using https://github.com/MeteorDevelopment/meteor-client/blob/master/gradle.properties#L6

e.printStackTrace();
}
return null;
}

@Override
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has changed pretty significantly, but as far as I could tell, the old code was a copy-paste of the base class implementation with the TextureUrlChecker.isAllowedTextureDomain() check removed, and checking the signature against publicKey instead of servicesKeySet from the base class. I made the same changes when overriding the 1.20.4 method, but haven't tested it.

} else {
status += (String.format(" (%s)", StatusEffectUtil.getDurationText(instance, 1)));
status += (String.format(" (%s)", StatusEffectUtil.getDurationText(instance, 1, 20)));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably safe to assume 20 unless we want this to scale on tick warped servers for whatever reason

Copy link
Member

Choose a reason for hiding this comment

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

I think its safer to use TickRate.INSTANCE.getTickRate(), some servers may run with <20 tps.

Copy link
Member

@C10udburst C10udburst left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

@C10udburst C10udburst merged commit 52bf7cc into AntiCope:master Feb 22, 2024
1 check passed
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