Initial commit (Forge 1291).
This commit is contained in:
20
patches/net/minecraftforge/oredict/OreDictionary.java.patch
Normal file
20
patches/net/minecraftforge/oredict/OreDictionary.java.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ../src-base/minecraft/net/minecraftforge/oredict/OreDictionary.java
|
||||
+++ ../src-work/minecraft/net/minecraftforge/oredict/OreDictionary.java
|
||||
@@ -216,7 +216,7 @@
|
||||
{
|
||||
ShapedRecipes recipe = (ShapedRecipes)obj;
|
||||
ItemStack output = recipe.getRecipeOutput();
|
||||
- if (output != null && containsMatch(false, exclusions, output))
|
||||
+ if ((output != null && containsMatch(false, exclusions, output)) || output == null) // Cauldron - fixes NPE's with null recipes being added to forge
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -231,7 +231,7 @@
|
||||
{
|
||||
ShapelessRecipes recipe = (ShapelessRecipes)obj;
|
||||
ItemStack output = recipe.getRecipeOutput();
|
||||
- if (output != null && containsMatch(false, exclusions, output))
|
||||
+ if ((output != null && containsMatch(false, exclusions, output)) || output == null) // Cauldron - fixes NPE's with null recipes being added to forge
|
||||
{
|
||||
continue;
|
||||
}
|
Reference in New Issue
Block a user