aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_math.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen_math.cpp')
-rw-r--r--src/mapgen_math.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_math.cpp b/src/mapgen_math.cpp
index a8a093a4a..6d0bf1292 100644
--- a/src/mapgen_math.cpp
+++ b/src/mapgen_math.cpp
@@ -171,8 +171,8 @@ void MapgenMathParams::writeParams(Settings *settings) {
MapgenMath::MapgenMath(int mapgenid, MapgenMathParams *params_, EmergeManager *emerge) : MapgenV7(mapgenid, params_, emerge) {
mg_params = params_;
- this->lighting = 0;
- this->ridges = 0;
+ this->flags |= MG_NOLIGHT;
+ this->ridges = 0;
Json::Value & params = mg_params->params;
invert = params["invert"].empty() ? 1 : params["invert"].asBool(); //params["invert"].empty()?1:params["invert"].asBool();