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

chore: various changes to 1.20.5 branch #4240

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: simplify
  • Loading branch information
ybw0014 committed Sep 11, 2024
commit e0d88b736654015ee9c49d21f8e9c44ca741b779
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,8 @@ public boolean isBefore(int minecraftVersion, int patchVersion) {
}

// major version mismatch
if (this.majorVersion < minecraftVersion) {
return true;
}
if (this.majorVersion > minecraftVersion) {
return false;
if (this.majorVersion != minecraftVersion) {
return this.majorVersion < minecraftVersion;
}

return this.minorVersion == -1 ? patchVersion > 0 : this.minorVersion < patchVersion;
Expand Down
Loading