Closes #1055
This commit is contained in:
parent
71ed8e2508
commit
2bed1e81ac
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@ public class WorldEventHandler {
|
||||||
AludelRecipeManager.registerRecipes();
|
AludelRecipeManager.registerRecipes();
|
||||||
|
|
||||||
long startTime = System.nanoTime();
|
long startTime = System.nanoTime();
|
||||||
|
if (ConfigurationHandler.Settings.regenerateEnergyValuesWhen.equalsIgnoreCase("As Needed")) {
|
||||||
|
EnergyValueRegistry.INSTANCE.load();
|
||||||
|
}
|
||||||
|
else {
|
||||||
EnergyValueRegistry.INSTANCE.compute();
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue