mirror of
https://github.com/minetest/minetest.git
synced 2024-08-20 05:24:15 +02: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()) {
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user