Configurable Below Zero Generation

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2021-11-28 12:09:29 +11:00
parent 7cfc37b17d
commit 479ce445d6
3 changed files with 27 additions and 3 deletions

View File

@@ -401,4 +401,9 @@ public class SpigotConfig
private static void disablePlayerDataSaving() {
SpigotConfig.disablePlayerDataSaving = SpigotConfig.getBoolean("players.disable-saving", false);
}
public static boolean belowZeroGenerationInExistingChunks;
private static void belowZeroGenerationInExistingChunks() {
SpigotConfig.belowZeroGenerationInExistingChunks = SpigotConfig.getBoolean("world-settings.default.below-zero-generation-in-existing-chunks", true);
}
}

View File

@@ -388,4 +388,9 @@ public class SpigotWorldConfig
{
this.thunderChance = this.getInt("thunder-chance", 100000);
}
public boolean belowZeroGenerationInExistingChunks;
private void belowZeroGenerationInExistingChunks() {
this.belowZeroGenerationInExistingChunks = this.getBoolean("below-zero-generation-in-existing-chunks", true);
}
}