diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-05-27 00:02:53 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-05-27 00:30:17 +0800 |
| commit | 5ba1e2fd5b50636a887c93d848994fded6e27d0f (patch) | |
| tree | d4f25a434b74df4722e0f1c08d4c2fadd1f107d5 /src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java | |
| parent | 31691eb26c42c505a959ecaadf59089876d4f706 (diff) | |
| download | RoughlyEnoughItems-5ba1e2fd5b50636a887c93d848994fded6e27d0f.tar.gz RoughlyEnoughItems-5ba1e2fd5b50636a887c93d848994fded6e27d0f.tar.bz2 RoughlyEnoughItems-5ba1e2fd5b50636a887c93d848994fded6e27d0f.zip | |
Fix nbt entries for entry registry
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java index 400a28336..1cf5b705f 100644 --- a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java @@ -314,7 +314,7 @@ public class RecipeHelperImpl implements RecipeHelper { private void startSection(Object[] sectionData, String section) { sectionData[0] = Util.getMeasuringTimeNano(); sectionData[2] = section; - RoughlyEnoughItemsCore.LOGGER.debug("Reloading REI: \"%s\"", section); + RoughlyEnoughItemsCore.LOGGER.debug("Reloading Section: \"%s\"", section); } private void endSection(Object[] sectionData) { @@ -322,9 +322,9 @@ public class RecipeHelperImpl implements RecipeHelper { long time = (long) sectionData[1] - (long) sectionData[0]; String section = (String) sectionData[2]; if (time >= 1000000) { - RoughlyEnoughItemsCore.LOGGER.debug("Reloading REI: \"%s\" done in %.2fms", section, time / 1000000.0F); + RoughlyEnoughItemsCore.LOGGER.debug("Reloading Section: \"%s\" done in %.2fms", section, time / 1000000.0F); } else { - RoughlyEnoughItemsCore.LOGGER.debug("Reloading REI: \"%s\" done in %.2fμs", section, time / 1000.0F); + RoughlyEnoughItemsCore.LOGGER.debug("Reloading Section: \"%s\" done in %.2fμs", section, time / 1000.0F); } } @@ -438,17 +438,25 @@ public class RecipeHelperImpl implements RecipeHelper { } }); endSection(sectionData); - startSection(sectionData, "finalizing"); // Clear Cache ((DisplayHelperImpl) DisplayHelper.getInstance()).resetCache(); ScreenHelper.getOptionalOverlay().ifPresent(overlay -> overlay.shouldReInit = true); + startSection(sectionData, "entry-registry-distinct"); + // Remove duplicate entries ((EntryRegistryImpl) EntryRegistry.getInstance()).distinct(); + + endSection(sectionData); + startSection(sectionData, "entry-registry-refilter"); + arePluginsLoading = false; ((EntryRegistryImpl) EntryRegistry.getInstance()).refilter(); + endSection(sectionData); + startSection(sectionData, "finalizing"); + // Clear Cache Again! ((DisplayHelperImpl) DisplayHelper.getInstance()).resetCache(); ScreenHelper.getOptionalOverlay().ifPresent(overlay -> overlay.shouldReInit = true); |
