public World() { string generatorName = Server.ServerConfig.WorldGenerator.ToUpper(); this.Generator = GeneratorManager.GetGenerator(generatorName); if (this.Generator == null) { this.Generator = GeneratorManager.GetGenerator("FLAT"); } }
private World(string worldName, IWorldSaveFormat format) { this.Name = worldName; this.Format = format; string generatorName = Server.Instance.ServerProperty.WorldGenerator.ToUpper(); this.Generator = GeneratorManager.GetGenerator(generatorName); if (this.Generator == null) { this.Generator = GeneratorManager.GetGenerator("FLAT"); } //this.Generator = GeneratorManager.GetGenerator("INFINITE"); }