diff options
author | Jason Mitchell <mitchej@gmail.com> | 2024-08-11 12:51:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-11 15:51:41 -0400 |
commit | 5cd813a5405777a6c92b1af03f7439a97e9523f8 (patch) | |
tree | 0d81c74463e8401e893862758a411f5d90e45788 /src/main/java/goodgenerator/loader | |
parent | 7e153794ad1f79afa0014b82593060ffedc54a61 (diff) | |
download | GT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.tar.gz GT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.tar.bz2 GT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.zip |
Faster dev boot times (120s --> 80s while profiling) (#2866)
* Faster dev boot times (120s --> 80s while profiling)
* Clean up sloppy hard deps and properly gate them behind isModLoaded() checks.
* Include CoreTweaks as runtime only non publishable for faster boot as well
Diffstat (limited to 'src/main/java/goodgenerator/loader')
-rw-r--r-- | src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java index 292c972edf..56e2a10df2 100644 --- a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java +++ b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java @@ -73,6 +73,7 @@ import goodgenerator.util.ItemRefer; import gregtech.api.enums.GT_Values; import gregtech.api.enums.ItemList; import gregtech.api.enums.Materials; +import gregtech.api.enums.Mods; import gregtech.api.enums.OrePrefixes; import gregtech.api.enums.TierEU; import gregtech.api.interfaces.IRecipeMutableAccess; @@ -811,14 +812,14 @@ public class NaquadahReworkRecipeLoader { reAdd.clear(); GT_Log.out.print("Thermal Centrifuge done!\n"); - + final boolean checkCombs = Mods.Forestry.isModLoaded(); // For Centrifuge for (GT_Recipe recipe : RecipeMaps.centrifugeRecipes.getAllRecipes()) { ItemStack input = null; if (recipe.mInputs.length > 0) input = recipe.mInputs[0]; if (GT_Utility.isStackValid(input)) { int[] oreDict = OreDictionary.getOreIDs(input); - if (input.isItemEqual(GT_Bees.combs.getStackForType(CombType.DOB))) { + if (checkCombs && input.isItemEqual(GT_Bees.combs.getStackForType(CombType.DOB))) { GT_Recipe tRecipe = recipe.copy(); boolean modified = false; for (int i = 0; i < tRecipe.mOutputs.length; i++) { @@ -922,7 +923,7 @@ public class NaquadahReworkRecipeLoader { if (recipe.mInputs.length > 0) input = recipe.mInputs[0]; if (GT_Utility.isStackValid(input)) { int[] oreDict = OreDictionary.getOreIDs(input); - if (input.isItemEqual(GT_Bees.combs.getStackForType(CombType.DOB))) { + if (checkCombs && input.isItemEqual(GT_Bees.combs.getStackForType(CombType.DOB))) { GT_Recipe tRecipe = recipe.copy(); boolean modified = false; for (int i = 0; i < tRecipe.mOutputs.length; i++) { |