mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 05:14:36 +00:00
fix: resolve build errors related to NukeWars
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { EventBus } from "../../core/EventBus";
|
||||
import { GameView } from "../../core/game/GameView";
|
||||
import { GameMode, TeamGameType } from "../../core/game/Game";
|
||||
import { GameView } from "../../core/game/GameView";
|
||||
import { UserSettings } from "../../core/game/UserSettings";
|
||||
import { GameStartingModal } from "../GameStartingModal";
|
||||
import { RefreshGraphicsEvent as RedrawGraphicsEvent } from "../InputHandler";
|
||||
import { TransformHandler } from "./TransformHandler";
|
||||
|
||||
@@ -3,7 +3,12 @@ import { Logger } from "winston";
|
||||
import WebSocket from "ws";
|
||||
import { z } from "zod";
|
||||
import { GameEnv, ServerConfig } from "../core/configuration/Config";
|
||||
import { GameMapType, GameMode, GameType } from "../core/game/Game";
|
||||
import {
|
||||
GameMapType,
|
||||
GameMode,
|
||||
GameType,
|
||||
TeamGameType,
|
||||
} from "../core/game/Game";
|
||||
import {
|
||||
ClientID,
|
||||
ClientMessageSchema,
|
||||
@@ -130,7 +135,8 @@ export class GameServer {
|
||||
// Enforce Nuke Wars only on Baikal at server side.
|
||||
try {
|
||||
if (
|
||||
this.gameConfig.gameMode === GameMode.NukeWars &&
|
||||
this.gameConfig.gameMode === GameMode.Team &&
|
||||
this.gameConfig.teamGameType === TeamGameType.NukeWars &&
|
||||
this.gameConfig.gameMap !== GameMapType.Baikal
|
||||
) {
|
||||
this.log.warn(
|
||||
|
||||
Reference in New Issue
Block a user