Skip to content

Commit 5f48dc0

Browse files
authored
fix(servers): standalone versions not showing up in loader page (#2890)
1 parent e81e056 commit 5f48dc0

File tree

1 file changed

+5
-2
lines changed
  • apps/frontend/src/pages/servers/manage/[id]/options

1 file changed

+5
-2
lines changed

apps/frontend/src/pages/servers/manage/[id]/options/loader.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,12 @@ const mcVersions = tags.value.gameVersions
334334
.filter((x) => x.version_type === "release")
335335
.map((x) => x.version)
336336
.filter((x) => {
337-
const num = parseInt(x.replace(/\./g, ""), 10);
337+
// const num = parseInt(x.replace(/\./g, ""), 10);
338338
// Versions 1.2.4 and below don't have server jars from Mojang
339-
return isNaN(num) || num >= 125;
339+
// return isNaN(num) || num >= 125;
340+
// above code broke singular versions up until 1.24 (ie 1.25 showed)
341+
const segment = parseInt(x.split(".")[1], 10);
342+
return !isNaN(segment) && segment > 2;
340343
});
341344
342345
const selectedLoaderVersions = computed(() => {

0 commit comments

Comments
 (0)