mirror of
https://github.com/minetest/minetest.git
synced 2024-12-05 05:53:44 +01:00
a078cfee3e
The old setting will be migrated properly. --------- Co-authored-by: grorp <gregor.parzefall@posteo.de>
15 lines
350 B
C
15 lines
350 B
C
// Minetest
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
#include "settings.h"
|
|
|
|
void migrate_settings()
|
|
{
|
|
// Converts opaque_water to translucent_liquids
|
|
if (g_settings->existsLocal("opaque_water")) {
|
|
g_settings->set("translucent_liquids",
|
|
g_settings->getBool("opaque_water") ? "false" : "true");
|
|
g_settings->remove("opaque_water");
|
|
}
|
|
}
|