Actually fix default dimensions with multiple mods
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// a dedicated server: the host from server/host.ts on a port, saving the world when it's stopped
|
||||
import { MOD_EXTENSION } from "@/common/mod.ts";
|
||||
import { type Host, start_host } from "./host.ts";
|
||||
|
||||
const PORT = Number(Deno.env.get("PORT") ?? 8000);
|
||||
@@ -11,6 +12,9 @@ try {
|
||||
host = await start_host({
|
||||
build_dir: Deno.env.get("BUILD_DIR") ?? "build",
|
||||
server_mods_dir: Deno.env.get("SERVER_MODS_DIR") ?? "server_mods",
|
||||
// which mods to play, by id, like MODS=bworld,create. each is <id>.cubi, as deno task build names them. every
|
||||
// one when left out, which only works while server_mods/ has a single game with a default dimension
|
||||
mod_files: Deno.env.get("MODS")?.split(",").map((id) => `${id.trim()}${MOD_EXTENSION}`),
|
||||
config_dir: Deno.env.get("CONFIG_DIR") ?? "config",
|
||||
dist_dir: Deno.env.get("DIST_DIR") ?? "dist",
|
||||
world_dir: Deno.env.get("WORLD_DIR") ?? "world",
|
||||
|
||||
Reference in New Issue
Block a user