diff options
author | chochem <40274384+chochem@users.noreply.github.com> | 2024-05-26 00:34:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 00:34:53 +0100 |
commit | 3939f74dc8afe7236f2bec0aba021e3675c24bfc (patch) | |
tree | bd8a56ac6d9e30b54d42848d34677becb1801c50 /src/main/java/gregtech/common/GT_RecipeAdder.java | |
parent | 3819aed2f2e0e82f303f76b789b519c7702cf9bb (diff) | |
download | GT5-Unofficial-3939f74dc8afe7236f2bec0aba021e3675c24bfc.tar.gz GT5-Unofficial-3939f74dc8afe7236f2bec0aba021e3675c24bfc.tar.bz2 GT5-Unofficial-3939f74dc8afe7236f2bec0aba021e3675c24bfc.zip |
Mod load check refactors (#2621)
* deprecate LoaderReference
* replace all uses of LoaderReference
* delete loaderreference
* mod loaded checks in gagreg
* remove modloaded checks for merged mods
Diffstat (limited to 'src/main/java/gregtech/common/GT_RecipeAdder.java')
-rw-r--r-- | src/main/java/gregtech/common/GT_RecipeAdder.java | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index d236bbc4f2..f0225fd241 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -627,32 +627,30 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { 0, 0); } - if (GTPlusPlus.isModLoaded()) { - RecipeMaps.primitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, - GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, - null, - null, - null, - null, - aDuration * 2 / 3, - 0, - 0); - RecipeMaps.primitiveBlastRecipes.addRecipe( - true, - new ItemStack[] { aInput1, aInput2, - GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) }, - new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, - null, - null, - null, - null, - aDuration * 2 / 3, - 0, - 0); - } + RecipeMaps.primitiveBlastRecipes.addRecipe( + true, + new ItemStack[] { aInput1, aInput2, + GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + null, + null, + null, + null, + aDuration * 2 / 3, + 0, + 0); + RecipeMaps.primitiveBlastRecipes.addRecipe( + true, + new ItemStack[] { aInput1, aInput2, + GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) }, + new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) }, + null, + null, + null, + null, + aDuration * 2 / 3, + 0, + 0); if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6) && (aOutput1 == null || aOutput1.stackSize <= 6) && (aOutput2 == null || aOutput2.stackSize <= 6)) { |