Fix some more null ItemStacks found with Idea

This commit is contained in:
Xander Victory committed 2017-06-13 14:38:49 +08:00
1 parent 2c1532b293
commit 8599224fca
10 files changed
+25 -24

No files matched your search

@@ -116,7 +116,7 @@ public class RecipeUtils
{
if(!((IGasItem)toReturn.getItem()).canReceiveGas(toReturn, stored.getGas()))
{
return null;
return ItemStack.EMPTY;
}
if(gasFound == null)
@@ -126,7 +126,7 @@ public class RecipeUtils
else {
if(gasFound.getGas() != stored.getGas())
{
return null;
return ItemStack.EMPTY;
}
gasFound.amount += stored.amount;
@@ -174,7 +174,7 @@ public class RecipeUtils
{
if(FluidUtil.getFluidHandler(itemstack).fill(stored, false) == 0)
{
return null;
return ItemStack.EMPTY;
}
if(fluidFound == null)
@@ -184,7 +184,7 @@ public class RecipeUtils
else {
if(fluidFound.getFluid() != stored.getFluid())
{
return null;
return ItemStack.EMPTY;
}
fluidFound.amount += stored.amount;