mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-04-06 17:10:29 +08:00
Fix: init instance default install path
This commit is contained in:
parent
bcda59c280
commit
f85ae5eddf
@ -17,6 +17,7 @@ import StartCommand from "../entity/commands/start";
|
||||
import { globalConfiguration } from "../entity/config";
|
||||
|
||||
// init instance default install path
|
||||
globalConfiguration.load();
|
||||
let INSTANCE_DATA_DIR = path.join(process.cwd(), "data/InstanceData");
|
||||
if (globalConfiguration.config.defaultInstancePath) {
|
||||
INSTANCE_DATA_DIR = path.normalize(globalConfiguration.config.defaultInstancePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user