Add config option to specify the default spawn fuzz factor for the overworld. Closes #1190

This commit is contained in:
Lex Manos committed 2014-06-29 18:56:22 -07:00
1 parent 219f5adf61
commit 63d3fd2e84
3 files changed
+13 -4

No files matched your search

@@ -67,6 +67,7 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC
public static boolean shouldSortRecipies = true;
public static boolean disableVersionCheck = false;
public static boolean enableStencilBits = true;
public static int defaultSpawnFuzz = 20;
private static Configuration config;
@@ -223,6 +224,13 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC
enableStencilBits = prop.getBoolean(true);
propOrder.add(prop.getName());
prop = config.get(Configuration.CATEGORY_GENERAL, "defaultSpawnFuzz", 20,
"The spawn fuzz when a player respawns in the world, this is controlable by WorldType, this config option is for the default overworld.",
1, Integer.MAX_VALUE);
prop.setLanguageKey("forge.configgui.spawnfuzz").setRequiresWorldRestart(false);
defaultSpawnFuzz = prop.getInt(20);
propOrder.add(prop.getName());
config.setCategoryPropertyOrder(CATEGORY_GENERAL, propOrder);
if (config.hasChanged())