Separate surface and underground library marker options

This commit is contained in:
Electroblob77
2020-07-15 00:30:08 +01:00
parent a945201cec
commit a831c2ada3
6 changed files with 20 additions and 6 deletions
@@ -277,6 +277,8 @@ public final class Settings {
public boolean autoShrineMarkers = true;
/** <b>[Server-only]</b> Whether global markers for library ruins are added to antique atlases. */
public boolean autoLibraryMarkers = true;
/** <b>[Server-only]</b> Whether global markers for underground library ruins are added to antique atlases. */
public boolean autoUndergroundLibraryMarkers = false;
// Synchronised settings. These settings affect both client-side AND server-side code. Changing these locally
// only has an effect if the local game is the host, i.e. a dedicated server, a LAN host or a singleplayer world.
@@ -1286,6 +1288,14 @@ public final class Settings {
autoLibraryMarkers = property.getBoolean();
propOrder.add(property.getName());
property = config.get(COMPATIBILITY_CATEGORY, "autoPlaceUndergroundLibraryMarkers", false,
"Controls whether wizardry automatically places antique atlas markers at the locations of underground library ruins.");
property.setLanguageKey("config." + Wizardry.MODID + ".auto_place_underground_library_markers");
property.setRequiresMcRestart(true);
Wizardry.proxy.setToNamedBooleanEntry(property);
autoUndergroundLibraryMarkers = property.getBoolean();
propOrder.add(property.getName());
config.setCategoryPropertyOrder(COMPATIBILITY_CATEGORY, propOrder);
}