Allow Config to adjust CPU Calculation time per tick.
This commit is contained in:
@@ -130,6 +130,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||
public double metoriteClusterChance = 0.1;
|
||||
public double metoriteSpawnChance = 0.3;
|
||||
|
||||
public int craftingCalculationTimePerTick = 5;
|
||||
|
||||
@SubscribeEvent
|
||||
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs)
|
||||
{
|
||||
@@ -301,6 +303,12 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||
spatialPowerScaler = get( "spatialio", "spatialPowerScaler", spatialPowerScaler ).getDouble( spatialPowerScaler );
|
||||
}
|
||||
|
||||
if ( isFeatureEnabled( AEFeature.CraftingCPU ) )
|
||||
{
|
||||
craftingCalculationTimePerTick = get( "craftingcpu", "craftingCalculationTimePerTick", craftingCalculationTimePerTick ).getInt(
|
||||
craftingCalculationTimePerTick );
|
||||
}
|
||||
|
||||
if ( isFeatureEnabled( AEFeature.VersionChecker ) )
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user