We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 046534e commit 453d79eCopy full SHA for 453d79e
src/map.cpp
@@ -3466,8 +3466,16 @@ void ServerMap::loadMapMeta()
3466
break;
3467
params.parseConfigLine(line);
3468
}
3469
-
3470
- MapgenParams *mgparams = m_emerge->getParamsFromSettings(¶ms);
+
+ MapgenParams *mgparams;
3471
+ try {
3472
+ mgparams = m_emerge->getParamsFromSettings(¶ms);
3473
+ } catch (SettingNotFoundException &e) {
3474
+ infostream << "Couldn't get a setting from map_meta.txt: "
3475
+ << e.what() << std::endl;
3476
+ mgparams = NULL;
3477
+ }
3478
3479
if (mgparams) {
3480
if (m_mgparams)
3481
delete m_mgparams;
0 commit comments