Skip to content

Commit

Permalink
Fix API version for Minecraft 1.18(.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 19, 2024
1 parent 44143f9 commit 673afd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/src/lib/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export function isApiVersionvalidForMcVersion(apiVersion: string, mcVersion: str
return false;
}

if (mcVersion == "1.18") {
return apiVersion == "0.44.0+1.18";
}

let branch = mcVersion;

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

0 comments on commit 673afd4

Please sign in to comment.