Skip to content

Commit

Permalink
fix(servers): standalone versions not showing up in loader page (#2890)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-nullptr authored Nov 3, 2024
1 parent e81e056 commit 5f48dc0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,12 @@ const mcVersions = tags.value.gameVersions
.filter((x) => x.version_type === "release")
.map((x) => x.version)
.filter((x) => {
const num = parseInt(x.replace(/\./g, ""), 10);
// const num = parseInt(x.replace(/\./g, ""), 10);
// Versions 1.2.4 and below don't have server jars from Mojang
return isNaN(num) || num >= 125;
// return isNaN(num) || num >= 125;
// above code broke singular versions up until 1.24 (ie 1.25 showed)
const segment = parseInt(x.split(".")[1], 10);
return !isNaN(segment) && segment > 2;
});
const selectedLoaderVersions = computed(() => {
Expand Down

0 comments on commit 5f48dc0

Please sign in to comment.