[trunk] New config property: nether.ratio, defaults to 16.

Please update use1to1ratio to ratio: 1.0

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1378 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-05-08 22:57:38 +00:00
parent 14b53db85a
commit dae0ce78d1
4 changed files with 13 additions and 33 deletions

View file

@ -471,6 +471,14 @@ public class Settings implements IConf
return config.getBoolean("nether.use-1to1-ratio", false);
}
public double getNetherRatio()
{
if (config.getBoolean("nether.use-1to1-ratio", false)) {
return 1.0;
}
return config.getDouble("nether.ratio", 16.0);
}
public boolean isDebug()
{
return config.getBoolean("debug", false);