Add NumberOfBlockGenerationTries - variable that indicate how many times generator should try to place block.

This commit is contained in:
BONNe1704 2019-01-30 17:12:41 +02:00
parent dc83823da5
commit bcdbdef1ae

View File

@ -734,7 +734,12 @@ public class Settings implements DataObject, WorldSettings
}
// ---------------------------------------------------------------------
public int getNumberOfBlockGenerationTries()
{
return numberOfBlockGenerationTries;
}
// ---------------------------------------------------------------------
// Section: Setters
// ---------------------------------------------------------------------
@ -1428,7 +1433,13 @@ public class Settings implements DataObject, WorldSettings
}
// ---------------------------------------------------------------------
public void setNumberOfBlockGenerationTries(int numberOfBlockGenerationTries)
{
this.numberOfBlockGenerationTries = numberOfBlockGenerationTries;
}
// ---------------------------------------------------------------------
// Section: Variables
// ---------------------------------------------------------------------
@ -1520,6 +1531,10 @@ public class Settings implements DataObject, WorldSettings
@ConfigEntry(path = "world.world-depth", needsReset = true)
private int worldDepth = 256;
@ConfigComment("This indicate how many times block should be tried to generate.")
@ConfigEntry(path = "world.generation-tries", needsReset = true)
private int numberOfBlockGenerationTries = 1;
@ConfigComment("")
@ConfigComment("Make over world roof of bedrock, if false, it will be made from stone")
@ConfigEntry(path = "world.normal.roof", needsReset = true)