Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Sep 11, 2024
1 parent 4142edb commit e0d88b7
Showing 1 changed file with 2 additions and 5 deletions.
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

0 comments on commit e0d88b7

Please sign in to comment.