diff options
author | chochem <40274384+chochem@users.noreply.github.com> | 2023-04-24 13:56:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 14:56:19 +0200 |
commit | e2715837e6397a8da1833be8ee9852c5c32e37af (patch) | |
tree | 93755c768c23f8d4fa9db0ab04601bb77df49def /src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java | |
parent | d1f5ab6150979010ef8debcf184efa67f3113bbc (diff) | |
download | GT5-Unofficial-e2715837e6397a8da1833be8ee9852c5c32e37af.tar.gz GT5-Unofficial-e2715837e6397a8da1833be8ee9852c5c32e37af.tar.bz2 GT5-Unofficial-e2715837e6397a8da1833be8ee9852c5c32e37af.zip |
RA2 fixes (#1910)
* add circuits
* more circuit
* more circuits
* sa
* fix cell and bucket bending
* more missing circuits
* sa
* gem, wire and stick
* finer nullcheck for gems
* block
* more gem fixes
* dust
* ingot
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java')
-rw-r--r-- | src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java index d385c9b0c2..8a1532b066 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java @@ -83,14 +83,16 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist if (tStack2 != null) tStack2.stackSize = 9; if (tStack3 != null) tStack3.stackSize = 9; - GT_Values.RA.stdBuilder() - .itemInputs(aStack) - .itemOutputs(tStack2) - .noFluidInputs() - .noFluidOutputs() - .duration(5 * SECONDS) - .eut(24) - .addTo(sHammerRecipes); + if (tStack2 != null) { + GT_Values.RA.stdBuilder() + .itemInputs(aStack) + .itemOutputs(tStack2) + .noFluidInputs() + .noFluidOutputs() + .duration(5 * SECONDS) + .eut(24) + .addTo(sHammerRecipes); + } if (GregTech_API.sRecipeFile.get( ConfigCategories.Recipes.storageblockdecrafting, @@ -105,7 +107,7 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist GT_ModHandler.addShapelessCraftingRecipe(tStack1, new Object[] { OrePrefixes.block.get(aMaterial) }); } - if (!OrePrefixes.block.isIgnored(aMaterial)) { + if (!OrePrefixes.block.isIgnored(aMaterial) && tStack1 != null) { // 9 ingots -> 1 block GT_Values.RA.stdBuilder() .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 9L)) |