mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
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:
parent
11b550e024
commit
80b9015939
@ -249,6 +249,9 @@ bool Settings::updateConfigObject(std::istream &is, std::ostream &os,
|
|||||||
} else if (it == m_settings.end()) {
|
} else if (it == m_settings.end()) {
|
||||||
// Remove by skipping
|
// Remove by skipping
|
||||||
was_modified = true;
|
was_modified = true;
|
||||||
|
Settings removed_group; // Move 'is' to group end
|
||||||
|
std::stringstream ss;
|
||||||
|
removed_group.updateConfigObject(is, ss, "}", tab_depth + 1);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
printEntry(os, name, it->second, tab_depth);
|
printEntry(os, name, it->second, tab_depth);
|
||||||
|
Loading…
Reference in New Issue
Block a user