[trunk] new setting use-1to1-ratio if true sets the nether offset when using world to 1:1 else defaults to normal nether ratio

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1201 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-04-15 23:06:29 +00:00
parent 60bf78040c
commit c1ef4faaf9
3 changed files with 14 additions and 1 deletions

View File

@ -458,4 +458,9 @@ public class Settings implements IConf
{
return config.getBoolean("protect.disable.warn-on-build-disallow", false);
}
public boolean use1to1RatioInNether()
{
return config.getBoolean("nether.use-1to1-ratio", false);
}
}

View File

@ -51,7 +51,14 @@ public class Commandworld extends EssentialsCommand
double factor;
if (user.getWorld().getEnvironment() == World.Environment.NETHER && world.getEnvironment() == World.Environment.NORMAL)
factor = 16;
if (Essentials.getSettings().use1to1RatioInNether())
{
factor = 1;
}
else
{
factor = 16;
}
else if (user.getWorld().getEnvironment() != world.getEnvironment())
factor = 1 / 16;
else

View File

@ -65,6 +65,7 @@ nether:
folder: nether
portals-enabled: false
generate-exit-portals: false
use-1to1-ratio: false
# Mob limit on spawnmob
spawnmob-limit: 10