if (!config.getDefaultModSelection().hasModule(TerasologyConstants.CORE_MODULE)) {
config.getDefaultModSelection().addModule(TerasologyConstants.CORE_MODULE);
}
if (!validateServerIdentity()) {
CertificateGenerator generator = new CertificateGenerator();
CertificatePair serverIdentity = generator.generateSelfSigned();
config.getSecurity().setServerCredentials(serverIdentity.getPublicCert(), serverIdentity.getPrivateCert());
config.save();
}
logger.info("Video Settings: " + config.getRendering().toString());
CoreRegistry.putPermanently(Config.class, config);