Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Update java.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 authored Sep 28, 2022
1 parent f6d7987 commit 7b5c075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const serverConfig: actionConfig[] = [
},
];

export async function startServer(Config?: {maxMemory?: number, minMemory?: number, maxFreeMemory?: boolean, platformOptions: bdsPlatformOptions}) {
export async function startServer(Config?: {maxMemory?: number, minMemory?: number, maxFreeMemory?: boolean, platformOptions?: bdsPlatformOptions}) {
const { serverPath, logsPath } = await pathControl("java", Config?.platformOptions||{id: "default"});
const jarPath = path.join(serverPath, "server.jar");
if (!fsOld.existsSync(jarPath)) throw new Error("Install server fist.");
Expand Down

0 comments on commit 7b5c075

Please sign in to comment.