mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
[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:
parent
60bf78040c
commit
c1ef4faaf9
3 changed files with 14 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,14 @@ public class Commandworld extends EssentialsCommand
|
|||
|
||||
double factor;
|
||||
if (user.getWorld().getEnvironment() == World.Environment.NETHER && world.getEnvironment() == World.Environment.NORMAL)
|
||||
if (Essentials.getSettings().use1to1RatioInNether())
|
||||
{
|
||||
factor = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
factor = 16;
|
||||
}
|
||||
else if (user.getWorld().getEnvironment() != world.getEnvironment())
|
||||
factor = 1 / 16;
|
||||
else
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue