Added 1.21.5 and 6
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import TopBar from "./components/layout/TopBar";
|
|||||||
import PlaySection from "./components/PlaySection";
|
import PlaySection from "./components/PlaySection";
|
||||||
import ModsSection from "./components/ModsSection";
|
import ModsSection from "./components/ModsSection";
|
||||||
import SettingsSection from "./components/SettingsSection";
|
import SettingsSection from "./components/SettingsSection";
|
||||||
import { versions } from "./lib/saturn";
|
import { versions } from "./lib/launcher";
|
||||||
import { GameVersion } from "./lib/types";
|
import { GameVersion } from "./lib/types";
|
||||||
import { MinecraftAccount } from "./lib/auth";
|
import { MinecraftAccount } from "./lib/auth";
|
||||||
|
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ import {
|
|||||||
discoverMods,
|
discoverMods,
|
||||||
toggleMod,
|
toggleMod,
|
||||||
installMod,
|
installMod,
|
||||||
versions,
|
|
||||||
} from "@/lib/saturn";
|
} from "@/lib/saturn";
|
||||||
import { clsx, type ClassValue } from "clsx";
|
import { clsx, type ClassValue } from "clsx";
|
||||||
import { twMerge } from "tailwind-merge";
|
import { twMerge } from "tailwind-merge";
|
||||||
import { motion, AnimatePresence } from "framer-motion";
|
import { motion, AnimatePresence } from "framer-motion";
|
||||||
import { GameVersion, Mod } from "@/lib/types";
|
import { GameVersion, Mod } from "@/lib/types";
|
||||||
|
import { versions } from "@/lib/launcher";
|
||||||
|
|
||||||
function cn(...inputs: ClassValue[]) {
|
function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs));
|
return twMerge(clsx(inputs));
|
||||||
|
|||||||
@@ -2,6 +2,24 @@ import { invoke } from "@tauri-apps/api/core";
|
|||||||
import { GameVersion } from "./types";
|
import { GameVersion } from "./types";
|
||||||
import { MinecraftAccount } from "./auth";
|
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
|
* Launch the game with the selected account and version
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-10
@@ -1,14 +1,5 @@
|
|||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { GameVersion, LauncherSettings, Mod } from "./types";
|
import { LauncherSettings, Mod } from "./types";
|
||||||
|
|
||||||
// --- Versions ---
|
|
||||||
export const versions: GameVersion[] = [
|
|
||||||
{
|
|
||||||
id: "1.21.4",
|
|
||||||
name: "Fabric 1.21.4",
|
|
||||||
loader_version: "0.18.6",
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
// --- Mods ---
|
// --- Mods ---
|
||||||
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
|
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
|
||||||
|
|||||||
Reference in New Issue
Block a user