mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Add config option to specify the default spawn fuzz factor for the overworld. Closes #1190
This commit is contained in:
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())
|
||||
|
||||
Reference in new issue
Block a user