This commit is contained in:
Pahimar 2016-05-22 23:28:30 -04:00
parent 71ed8e2508
commit 2bed1e81ac

View file

@ -23,7 +23,12 @@ public class WorldEventHandler {
AludelRecipeManager.registerRecipes(); AludelRecipeManager.registerRecipes();
long startTime = System.nanoTime(); long startTime = System.nanoTime();
EnergyValueRegistry.INSTANCE.compute(); if (ConfigurationHandler.Settings.regenerateEnergyValuesWhen.equalsIgnoreCase("As Needed")) {
EnergyValueRegistry.INSTANCE.load();
}
else {
EnergyValueRegistry.INSTANCE.compute();
}
LogHelper.info(EnergyValueRegistry.ENERGY_VALUE_MARKER, "Energy value system initialized {} values after {} ms", EnergyValueRegistry.INSTANCE.getEnergyValues().size(), (System.nanoTime() - startTime) / 100000); LogHelper.info(EnergyValueRegistry.ENERGY_VALUE_MARKER, "Energy value system initialized {} values after {} ms", EnergyValueRegistry.INSTANCE.getEnergyValues().size(), (System.nanoTime() - startTime) / 100000);
hasInitilialized = true; hasInitilialized = true;