From 5de1c74d836dec1101cd916689834ebe58fde02c Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 4 Apr 2026 20:21:13 +0200 Subject: [PATCH] Added 1.21.5 and 6 --- src/App.tsx | 2 +- src/components/ModsSection.tsx | 2 +- src/lib/launcher.ts | 18 ++++++++++++++++++ src/lib/saturn.ts | 11 +---------- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index baca87b..1bf19a4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,7 +4,7 @@ import TopBar from "./components/layout/TopBar"; import PlaySection from "./components/PlaySection"; import ModsSection from "./components/ModsSection"; import SettingsSection from "./components/SettingsSection"; -import { versions } from "./lib/saturn"; +import { versions } from "./lib/launcher"; import { GameVersion } from "./lib/types"; import { MinecraftAccount } from "./lib/auth"; diff --git a/src/components/ModsSection.tsx b/src/components/ModsSection.tsx index 41ffeb4..1431e79 100644 --- a/src/components/ModsSection.tsx +++ b/src/components/ModsSection.tsx @@ -13,12 +13,12 @@ import { discoverMods, toggleMod, installMod, - versions, } from "@/lib/saturn"; import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; import { motion, AnimatePresence } from "framer-motion"; import { GameVersion, Mod } from "@/lib/types"; +import { versions } from "@/lib/launcher"; function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); diff --git a/src/lib/launcher.ts b/src/lib/launcher.ts index 2640b83..af4f3dc 100644 --- a/src/lib/launcher.ts +++ b/src/lib/launcher.ts @@ -2,6 +2,24 @@ import { invoke } from "@tauri-apps/api/core"; import { GameVersion } from "./types"; import { MinecraftAccount } from "./auth"; +export const versions: GameVersion[] = [ + { + id: "1.21.4", + name: "Fabric 1.21.4", + loader_version: "0.18.6", + }, + { + id: "1.21.5", + name: "Fabric 1.21.5", + loader_version: "0.18.6", + }, + { + id: "1.21.6", + name: "Fabric 1.21.6", + loader_version: "0.18.6", + }, +]; + /** * Launch the game with the selected account and version */ diff --git a/src/lib/saturn.ts b/src/lib/saturn.ts index 39b517e..ef7fa94 100644 --- a/src/lib/saturn.ts +++ b/src/lib/saturn.ts @@ -1,14 +1,5 @@ import { invoke } from "@tauri-apps/api/core"; -import { GameVersion, LauncherSettings, Mod } from "./types"; - -// --- Versions --- -export const versions: GameVersion[] = [ - { - id: "1.21.4", - name: "Fabric 1.21.4", - loader_version: "0.18.6", - }, -]; +import { LauncherSettings, Mod } from "./types"; // --- Mods --- export async function getInstalledMods(versionId: string): Promise {