Added a config option to disable vanilla's exposed stone feature
This commit is contained in:
parent
71573a5e2f
commit
49994cc48b
|
@ -312,6 +312,7 @@ public class BOPConfiguration
|
|||
public static boolean springWaterGen;
|
||||
public static boolean poisonWaterGen;
|
||||
public static boolean quicksandGen;
|
||||
public static boolean exposedStone;
|
||||
|
||||
public static int villageDistance;
|
||||
|
||||
|
@ -419,6 +420,7 @@ public class BOPConfiguration
|
|||
springWaterGen = config.get("Decoration Settings", "Generate Hot Springs", true).getBoolean(true);
|
||||
poisonWaterGen = config.get("Decoration Settings", "Generate Poison Pools", true).getBoolean(true);
|
||||
quicksandGen = config.get("Decoration Settings", "Generate Quicksand", true).getBoolean(true);
|
||||
exposedStone = config.get("Decoration Settings", "Generate Sections Of Exposed Stone", true).getBoolean(true);
|
||||
|
||||
villageDistance = config.get("Biomes O\' Plenty World Type Settings", "Distance between villages", 32, "In Vanilla it is set to 32").getInt();
|
||||
if (villageDistance < 8)
|
||||
|
|
|
@ -242,8 +242,16 @@ public class ChunkProviderBOP implements IChunkProvider
|
|||
{
|
||||
if (i1 <= 0)
|
||||
{
|
||||
b1 = 0;
|
||||
b2 = (byte)Block.stone.blockID;
|
||||
if (BOPConfiguration.TerrainGen.exposedStone)
|
||||
{
|
||||
b1 = 0;
|
||||
b2 = (byte)Block.stone.blockID;
|
||||
}
|
||||
else
|
||||
{
|
||||
b1 = biomegenbase.topBlock;
|
||||
b2 = biomegenbase.fillerBlock;
|
||||
}
|
||||
}
|
||||
else if (k1 >= b0 - 4 && k1 <= b0 + 1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue