isPlasmaCellUsed additional null check

This commit is contained in:
Muramasa 2016-05-26 00:55:34 +01:00
parent fced86e11a
commit 79fc84d5d2

View file

@ -820,7 +820,10 @@ public class GT_MetaGenerated_Item_01
Collection<GT_Recipe> fusionRecipes = GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList;
if(aPrefix == OrePrefixes.cellPlasma && aMaterial.getPlasma(1L) != null) { //Materials has a plasma fluid
for(GT_Recipe recipe : fusionRecipes) { //Loop through fusion recipes
if(recipe.getFluidOutput(0).isFluidEqual(aMaterial.getPlasma(1L))) return true; //Fusion recipe output matches current plasma cell fluid
if(recipe.getFluidOutput(0) != null) { //Make sure fluid output can't be null (not sure if possible)
if (recipe.getFluidOutput(0).isFluidEqual(aMaterial.getPlasma(1L)))
return true; //Fusion recipe output matches current plasma cell fluid
}
}
}
return false;