isPlasmaCellUsed additional null check
This commit is contained in:
parent
fced86e11a
commit
79fc84d5d2
1 changed files with 4 additions and 1 deletions
|
@ -820,7 +820,10 @@ public class GT_MetaGenerated_Item_01
|
||||||
Collection<GT_Recipe> fusionRecipes = GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList;
|
Collection<GT_Recipe> fusionRecipes = GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList;
|
||||||
if(aPrefix == OrePrefixes.cellPlasma && aMaterial.getPlasma(1L) != null) { //Materials has a plasma fluid
|
if(aPrefix == OrePrefixes.cellPlasma && aMaterial.getPlasma(1L) != null) { //Materials has a plasma fluid
|
||||||
for(GT_Recipe recipe : fusionRecipes) { //Loop through fusion recipes
|
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;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue