Added refresh rate configs

This will only work for the map host, and is design to control the rate
at which the Assembly tile network will update its connections to other
tiles.
This commit is contained in:
DarkGuardsman 2013-08-24 09:51:55 -04:00
parent d0b5f22900
commit 6fee35bb17

View file

@ -35,6 +35,7 @@ import dark.assembly.common.machine.BlockManipulator;
import dark.assembly.common.machine.BlockRejector;
import dark.assembly.common.machine.BlockTurntable;
import dark.assembly.common.machine.ItemBlockCrate;
import dark.assembly.common.machine.TileEntityAssembly;
import dark.assembly.common.machine.TileEntityCrate;
import dark.assembly.common.machine.TileEntityDetector;
import dark.assembly.common.machine.TileEntityManipulator;
@ -160,9 +161,12 @@ public class AssemblyLine extends ModPrefab
recipeLoader.itemImprint = new ItemImprinter(CONFIGURATION.getItem("Imprint", ITEM_ID_PREFIX).getInt());
recipeLoader.itemDisk = new ItemDisk(CONFIGURATION.getItem("Disk", ITEM_ID_PREFIX + 1).getInt());
AssemblyLine.REQUIRE_NO_POWER = !CONFIGURATION.get("general", "requirePower", true).getBoolean(true);
AssemblyLine.VINALLA_RECIPES = CONFIGURATION.get("general", "Vinalla_Recipes", false).getBoolean(false);
AssemblyLine.REQUIRE_NO_POWER = !CONFIGURATION.get("TileSettings", "requirePower", true).getBoolean(true);
TileEntityAssembly.refresh_diff = CONFIGURATION.get("TileSettings", "RefreshRandomRange", 9, "n = value of config, 1 + n, random number range from 1 to n that will be added to the lowest refresh value").getInt();
TileEntityAssembly.refresh_min_rate = CONFIGURATION.get("TileSettings", "RefreshLowestValue", 20, "Lowest value the refresh rate of the tile network will be").getInt();
CONFIGURATION.save();
}