From 3b1db51a5ef610b224a5d6864d16583d35a890dd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 25 Apr 2024 20:22:29 -0400 Subject: [PATCH] comment cleanup --- src/engine/gameManager/ConfigManager.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/engine/gameManager/ConfigManager.java b/src/engine/gameManager/ConfigManager.java index a3a7a258..25284548 100644 --- a/src/engine/gameManager/ConfigManager.java +++ b/src/engine/gameManager/ConfigManager.java @@ -8,9 +8,10 @@ package engine.gameManager; -/* This enumeration implements Magicbane's configuration data which - is loaded from environment variables. - */ +// Magicbane configuration is loaded from environment variables +// +// On boot the game first looks in mb.conf for the file magicbane.conf. +// If not found, a default is loaded from /mb.data to enable bootstrap. import engine.mbEnums; import engine.server.login.LoginServer; @@ -105,11 +106,11 @@ public enum ConfigManager { // and determine the server type at runtime. public static final String DEFAULT_DATA_DIR = "mb.data/"; - public static Map configMap = new HashMap(System.getenv()); + public static final Map configMap = new HashMap(System.getenv()); public static mbEnums.ServerType serverType = mbEnums.ServerType.NONE; public static WorldServer worldServer; public static LoginServer loginServer; - public static Map regex = new HashMap<>(); + public static final Map regex = new HashMap<>(); public static String currentRepoBranch = ""; @@ -124,7 +125,7 @@ public enum ConfigManager { Logger.info(configSetting.name() + ":" + configSetting.getValue()); else { Logger.error("Missing Config: " + configSetting.name()); - Logger.error("This codebase requires >= MagicBox v1.5.1"); + Logger.error("This codebase requires >= MagicBox v1.5.2"); Logger.error("docker pull magicbane/magicbox:latest"); return false; }