Fixed a bug where an Assembler recipe would be added if the output is
null
This commit is contained in:
parent
74c41614a5
commit
91fb725a47
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue