Skip to content

Commit 2aab099

Browse files
committed
chore: 更改任务选项的配置文件名
1 parent 240a9a5 commit 2aab099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/server/src/setup/configHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ import { TaskOptions } from '../configHandlers/TaskOptions.ts';
1010
const PET_CACHE_FILENAME = 'sea-pets.json';
1111
const MOD_LIST_FILENAME = 'sea-mods.json';
1212
const LAUNCHER_CONFIG_FILENAME = 'sea-launcher.json';
13-
const TASK_CONFIG_FILENAME = 'sea-task-config.json';
13+
const TASK_OPTIONS_FILENAME = 'sea-task-options.json';
1414

1515
export const setupConfigHandlers = async (appRoot: string) => {
1616
const petCatchTimeStorage = new FileSystemStorage(path.join(appRoot, configsRoot, PET_CACHE_FILENAME));
1717
const launcherConfigStorage = new FileSystemStorage(path.join(appRoot, configsRoot, LAUNCHER_CONFIG_FILENAME));
1818
const modIndexStorage = new FileSystemStorage(path.join(appRoot, configsRoot, MOD_LIST_FILENAME));
19-
const taskConfigStorage = new FileSystemStorage(path.join(appRoot, configsRoot, TASK_CONFIG_FILENAME));
19+
const taskOptionsStorage = new FileSystemStorage(path.join(appRoot, configsRoot, TASK_OPTIONS_FILENAME));
2020

2121
const petCatchTime = new PetCatchTime(petCatchTimeStorage);
2222
const launcherConfig = new LauncherConfig(launcherConfigStorage);
2323
const modIndex = new ModIndex(modIndexStorage);
24-
const taskConfig = new TaskOptions(taskConfigStorage);
24+
const taskConfig = new TaskOptions(taskOptionsStorage);
2525
await Promise.all([petCatchTime.load(), launcherConfig.load(), taskConfig.load(), modIndex.load()]);
2626

2727
return {

0 commit comments

Comments
 (0)