forked from unimatrix/web
Hard-block ore generation on Arrakis even with stale config
This commit is contained in:
parent
6da2e33c03
commit
411023ac93
1 changed files with 1 additions and 0 deletions
|
|
@ -548,6 +548,7 @@ public final class DuneTerrain extends JavaPlugin implements Listener {
|
|||
}
|
||||
private static double hashUnit(long hash) { return (hash >>> 11) * 0x1.0p-53; }
|
||||
private void placeOres(ChunkData data, Random random, String path, int minWorldY, int maxWorldY) {
|
||||
if (planet.equals("arrakis")) return; // Spice, never ores.
|
||||
org.bukkit.configuration.ConfigurationSection ores = plugin.getConfig().getConfigurationSection(path + "ores");
|
||||
if (ores == null) return;
|
||||
int minY = Math.max(minWorldY + 1, plugin.getConfig().getInt(path + "ores.min-y", -48));
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff