aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-04-06 18:35:26 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-04-06 18:35:26 +0800
commit948c7cd99d049f46cf840a3cb42eaec9ab627524 (patch)
treee2725c761082955f7c194f8b8cf3507edac6c720 /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
parent127e6b24a8dbc11ec110076be724b022e456d080 (diff)
downloadRoughlyEnoughItems-948c7cd99d049f46cf840a3cb42eaec9ab627524.tar.gz
RoughlyEnoughItems-948c7cd99d049f46cf840a3cb42eaec9ab627524.tar.bz2
RoughlyEnoughItems-948c7cd99d049f46cf840a3cb42eaec9ab627524.zip
Updated to 19w14b
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
index 8e156d85a..161bdd5ae 100644
--- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
@@ -181,7 +181,7 @@ public class RecipeHelperImpl implements RecipeHelper {
this.speedCraftAreaSupplierMap.clear();
this.speedCraftFunctionalMap.clear();
this.displayVisibilityHandlers.clear();
-
+ long startTime = System.currentTimeMillis();
List<REIPlugin> plugins = new LinkedList<>(RoughlyEnoughItemsCore.getPlugins());
plugins.sort((first, second) -> {
return second.getPriority() - first.getPriority();
@@ -217,8 +217,8 @@ public class RecipeHelperImpl implements RecipeHelper {
return -1f;
}
});
- RoughlyEnoughItemsCore.LOGGER.info("[REI] Registered Categories: " + String.join(", ", categories.stream().map(RecipeCategory::getCategoryName).collect(Collectors.toList())));
- RoughlyEnoughItemsCore.LOGGER.info("[REI] Registered %d recipes.", recipeCount.get());
+ long usedTime = System.currentTimeMillis() - startTime;
+ RoughlyEnoughItemsCore.LOGGER.info("[REI] Registered %d recipes, %d categories (%s) in %d ms.", recipeCount.get(), categories.size(), String.join(", ", categories.stream().map(RecipeCategory::getCategoryName).collect(Collectors.toList())), usedTime);
}
@Override