add config/defaults.toml
This commit is contained in:
@@ -206,9 +206,6 @@ void WorldInfo::deserialize(const dv::value& root) {
|
||||
generator = root["generator"].asString(generator);
|
||||
seed = root["seed"].asInteger(seed);
|
||||
|
||||
if (generator.empty()) {
|
||||
generator = WorldGenerator::DEFAULT;
|
||||
}
|
||||
if (root.has("version")) {
|
||||
auto& verobj = root["version"];
|
||||
major = verobj["major"].asInteger();
|
||||
|
||||
@@ -131,7 +131,4 @@ public:
|
||||
void generate(voxel* voxels, int x, int z);
|
||||
|
||||
WorldGenDebugInfo createDebugInfo() const;
|
||||
|
||||
/// @brief Default generator name // TODO: move to config
|
||||
inline static std::string DEFAULT = "core:default";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user