diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2019-12-02 22:04:20 +0100 |
---|---|---|
committer | Daniel <daniel112092@gmail.com> | 2019-12-02 22:04:20 +0100 |
commit | 1d3caaf08b6be1f545dce06656f61c1d132efc1c (patch) | |
tree | 5f9d83f35d9a7b9f391eeb6f5d8bbb38e62495e7 /src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java | |
parent | 330eeb88b0227f60144ed59b28f017f00d520291 (diff) | |
download | GT5-Unofficial-1d3caaf08b6be1f545dce06656f61c1d132efc1c.tar.gz GT5-Unofficial-1d3caaf08b6be1f545dce06656f61c1d132efc1c.tar.bz2 GT5-Unofficial-1d3caaf08b6be1f545dce06656f61c1d132efc1c.zip |
improved loading times a lot (#211)
* improved loading times a lot
+ whitelisted only a few materials that really get changed with gt
+ code maintenance
+ tested and ready for shipping
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
* improved readability
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
* improved loading times by buffing recipes
+ buffer increases performance by another ~40%
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
* Fixed breaking bug
+ added a config option to disable material whitelist
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java')
-rw-r--r-- | src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java index bf402ad893..3fda2ae1f7 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java @@ -6,8 +6,6 @@ import gregtech.api.enums.OrePrefixes; import gregtech.api.interfaces.IOreRecipeRegistrator; import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_ModHandler; -import gregtech.api.util.GT_RecipeRegistrator; -import gregtech.api.util.GT_Utility; import net.minecraft.item.ItemStack; public class ProcessingCompressed implements IOreRecipeRegistrator { @@ -18,6 +16,6 @@ public class ProcessingCompressed implements IOreRecipeRegistrator { public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { GT_ModHandler.removeRecipeByOutput(aStack); GregTech_API.registerCover(aStack, new GT_RenderedTexture(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), null); - GT_RecipeRegistrator.registerUsagesForMaterials(GT_Utility.copyAmount(1L, new Object[]{aStack}), null, false); + //GT_RecipeRegistrator.registerUsagesForMaterials(null, false, GT_Utility.copyAmount(1L, aStack)); } } |