Log warning when module specified in override.cfg not found
Fixes
*/
package org.terasology.engine.subsystem.headless.mode;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.terasology.config.Config;
import org.terasology.config.WorldGenerationConfig;
import org.terasology.context.Context;
*/
public class StateHeadlessSetup implements GameState {
+ private static final Logger logger = LoggerFactory.getLogger(StateHeadlessSetup.class);
+
private EngineEntityManager entityManager;
private EventSystem eventSystem;
private ComponentSystemManager componentSystemManager;
@@ -125,6 +129,8 @@ public GameManifest createGameManifest() {
Module module = moduleManager.getRegistry().getLatestModuleVersion(moduleName);
if (module != null) {
gameManifest.addModule(module.getId(), module.getVersion());
+ } else {
+ logger.warn("ModuleRegistry has no latest version for module {}", moduleName);
}
}
