Skip to content

Commit

Permalink
Fix api version selection for 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Apr 12, 2023
1 parent 2674d09 commit db53f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/src/lib/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function isApiVersionvalidForMcVersion(apiVersion: string, mcVersion: str

let branch = mcVersion;

let versionBranches = ["1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "20w14infinite", "1.18_experimental"]
let versionBranches = ["1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "20w14infinite", "1.18_experimental"]

versionBranches.forEach((v) => {
if (mcVersion.startsWith(v)) {
Expand All @@ -97,7 +97,7 @@ export function isApiVersionvalidForMcVersion(apiVersion: string, mcVersion: str
if (mcVersion.startsWith("22w13oneblockatatime")) {
branch = "22w13oneblockatatime"
} else if (mcVersion.startsWith("23w")) {
branch = "1.19.4"
branch = "1.20"
} else if (mcVersion.startsWith("22w")) {
branch = "1.19.3"
} else if (mcVersion.startsWith("1.18.2")) {
Expand Down

0 comments on commit db53f01

Please sign in to comment.