Advanced settings noiseparams: Remove '}' left in .conf

Previously, when editing noiseparams then restoring them to the default,
the final '}' was not removed from minetest.conf.
This commit is contained in:
SmallJoker 2019-01-10 18:54:10 +01:00 committed by paramat
parent 11b550e024
commit 80b9015939

@ -249,6 +249,9 @@ bool Settings::updateConfigObject(std::istream &is, std::ostream &os,
} else if (it == m_settings.end()) {
// Remove by skipping
was_modified = true;
Settings removed_group; // Move 'is' to group end
std::stringstream ss;
removed_group.updateConfigObject(is, ss, "}", tab_depth + 1);
break;
} else {
printEntry(os, name, it->second, tab_depth);