diff options
author | Mary <33456283+FourIsTheNumber@users.noreply.github.com> | 2024-09-14 23:48:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 22:48:35 -0500 |
commit | 5b9f3521c09d7100f81e5c56b140bf769386a768 (patch) | |
tree | e9d924a4ef00a712574c23c754224eee5313f370 /src/main/java/gregtech/common/tileentities/machines/multi | |
parent | 99d102e2a0a9d66f62c964a65d43ed8134b02df9 (diff) | |
download | GT5-Unofficial-5b9f3521c09d7100f81e5c56b140bf769386a768.tar.gz GT5-Unofficial-5b9f3521c09d7100f81e5c56b140bf769386a768.tar.bz2 GT5-Unofficial-5b9f3521c09d7100f81e5c56b140bf769386a768.zip |
Don't allow PA or LPF to do HIP/Black hole compression recipes (#3195)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines/multi')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/MTEProcessingArray.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEProcessingArray.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEProcessingArray.java index 43f1c003a9..808a9791a3 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEProcessingArray.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEProcessingArray.java @@ -69,6 +69,7 @@ import gregtech.api.recipe.RecipeMap; import gregtech.api.recipe.check.CheckRecipeResult; import gregtech.api.recipe.check.CheckRecipeResultRegistry; import gregtech.api.recipe.check.SimpleCheckRecipeResult; +import gregtech.api.recipe.metadata.CompressionTierKey; import gregtech.api.render.TextureFactory; import gregtech.api.util.ExoticEnergyInputHelper; import gregtech.api.util.GTRecipe; @@ -246,6 +247,8 @@ public class MTEProcessingArray extends MTEExtendedPowerMultiBlockBase<MTEProces @Nonnull @Override protected CheckRecipeResult validateRecipe(@Nonnull GTRecipe recipe) { + if (recipe.getMetadataOrDefault(CompressionTierKey.INSTANCE, 0) > 0) + return CheckRecipeResultRegistry.NO_RECIPE; if (GTMod.gregtechproxy.mLowGravProcessing && recipe.mSpecialValue == -100 && !isValidForLowGravity(recipe, getBaseMetaTileEntity().getWorld().provider.dimensionId)) { return SimpleCheckRecipeResult.ofFailure("high_gravity"); |