Fixed a bug where an Assembler recipe would be added if the output is

null
This commit is contained in:
Johannes Gäßler 2017-06-14 22:24:31 +02:00
parent 74c41614a5
commit 91fb725a47

View file

@ -259,7 +259,10 @@ public class GT_RecipeAdder
} }
public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt) { public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt) {
if (areItemsAndFluidsBothNull(aInputs, null)) { if (areItemsAndFluidsBothNull(aInputs, new FluidStack[]{aFluidInput})) {
return false;
}
if (aOutput1 == null) {
return false; return false;
} }
if ((aDuration = GregTech_API.sRecipeFile.get("assembling", aOutput1, aDuration)) <= 0) { if ((aDuration = GregTech_API.sRecipeFile.get("assembling", aOutput1, aDuration)) <= 0) {