Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Dec 17, 2024
1 parent 5db677e commit e1701a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev-proxy": "node server.js",
"start": "run-p dev-rsbuild dev-proxy watch-mesher watch-other-workers",
"start2": "run-p dev-rsbuild watch-mesher watch-other-workers",
"build": "pnpm build-other-workers && rsbuild build",
"build": "rsbuild build && pnpm build-other-workers",
"build-analyze": "BUNDLE_ANALYZE=true rsbuild build && pnpm build-other-workers",
"check-build": "tsx scripts/genShims.ts && tsc && pnpm build",
"test:cypress": "cypress run",
Expand Down
3 changes: 2 additions & 1 deletion src/integratedServer/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export const startLocalServerMain = async (serverOptions: { version: any }) => {

serverChannel.start({
options: serverOptions,
mcData: await getMcDataForWorker(serverOptions.version)
mcData: await getMcDataForWorker(serverOptions.version),
settings: lastCustomSettings
})

await readyPromise
Expand Down
2 changes: 1 addition & 1 deletion src/integratedServer/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const updateSettings = (initial = true) => {
}

export const workerProxyType = createWorkerProxy({
start ({ options, mcData, settings }) {
start ({ options, mcData, settings }: { options: any, mcData: any, settings: CustomAppSettings }) {
globalSettings = settings
//@ts-expect-error
globalThis.mcData = mcData
Expand Down

0 comments on commit e1701a3

Please sign in to comment.