From a6773bd092db654360c599ca6b0108ea0e456e8c Mon Sep 17 00:00:00 2001
From: 苏向夜 <fu050409@163.com>
Date: Wed, 25 Feb 2026 00:16:53 +0800
Subject: feat: prepare for nightly alpha

---
 .../ui-new/src/components/instance-creation-modal.tsx  | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

(limited to 'packages/ui-new/src/components/instance-creation-modal.tsx')

diff --git a/packages/ui-new/src/components/instance-creation-modal.tsx b/packages/ui-new/src/components/instance-creation-modal.tsx
index bdc1a6f..8a2b1b4 100644
--- a/packages/ui-new/src/components/instance-creation-modal.tsx
+++ b/packages/ui-new/src/components/instance-creation-modal.tsx
@@ -13,8 +13,8 @@ import {
 } from "@/components/ui/dialog";
 import { Input } from "@/components/ui/input";
 import { ScrollArea } from "@/components/ui/scroll-area";
+import { useInstancesStore } from "@/models/instances";
 import { useGameStore } from "@/stores/game-store";
-import { useInstancesStore } from "@/stores/instances-store";
 import type { Version } from "@/types/bindings/manifest";
 import type { FabricLoaderEntry } from "../types/bindings/fabric";
 import type { ForgeVersion as ForgeVersionEntry } from "../types/bindings/forge";
@@ -25,20 +25,6 @@ interface Props {
   onOpenChange: (open: boolean) => void;
 }
 
-/**
- * InstanceCreationModal
- * 3-step wizard:
- *  1) Name
- *  2) Select base Minecraft version
- *  3) Optional: choose mod loader (vanilla/fabric/forge) and loader version
- *
- * Behavior:
- *  - On Create: invoke("create_instance", { name })
- *  - If a base version selected: invoke("install_version", { instanceId, versionId })
- *  - If Fabric selected: invoke("install_fabric", { instanceId, gameVersion, loaderVersion })
- *  - If Forge selected: invoke("install_forge", { instanceId, gameVersion, forgeVersion })
- *  - Reload instances via instancesStore.loadInstances()
- */
 export function InstanceCreationModal({ open, onOpenChange }: Props) {
   const gameStore = useGameStore();
   const instancesStore = useInstancesStore();
@@ -242,7 +228,7 @@ export function InstanceCreationModal({ open, onOpenChange }: Props) {
       }
 
       // Refresh instances list
-      await instancesStore.loadInstances();
+      await instancesStore.refresh();
 
       toast.success("Instance created successfully");
       onOpenChange(false);
-- 
cgit v1.2.3-70-g09d2

