Skip to content
Permalink
Browse files

This could fix #3

  • Loading branch information...
dries007 committed May 14, 2015
1 parent 11d927d commit c58fe3f3f97a46a2e8647763dbd62aaa45d62507
@@ -197,7 +197,7 @@ public DimBasedShapedOreRecipe(boolean isCrayRecipe, ItemStack newOutput, Object
@Override
public boolean matches(InventoryCrafting inv, World world)
{
return ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
return inv != null && world != null && ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
}
}

@@ -115,7 +115,7 @@ public DimBasedShapedRecipes(boolean isCrayRecipe, int p_i1917_1_, int p_i1917_2
@Override
public boolean matches(InventoryCrafting inv, World world)
{
return ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
return inv != null && world != null && ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
}
}

@@ -122,7 +122,7 @@ public DimBasedShapelessOreRecipe(boolean isCrayRecipe, ItemStack newOutput, Obj
@Override
public boolean matches(InventoryCrafting inv, World world)
{
return ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
return inv != null && world != null && ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
}
}

@@ -95,7 +95,7 @@ public DimBasedShapelessRecipes(boolean isCrayRecipe, ItemStack newOutput, Array
@Override
public boolean matches(InventoryCrafting inv, World world)
{
return ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
return inv != null && world != null && ((RecipeRegistry.doesCrayApplyTo(world) && isCrayRecipe) || (!RecipeRegistry.doesCrayApplyTo(world) && !isCrayRecipe)) && super.matches(inv, world);
}
}

0 comments on commit c58fe3f

Please sign in to comment.
You can’t perform that action at this time.