Fixed map extension recipie.

This commit is contained in:
LexManos 2016-05-08 16:35:01 -07:00
parent 363e84b2c5
commit a7d5820e99

View file

@ -327,7 +327,7 @@ public class OreDictionary
// Search vanilla recipes for recipes to replace // Search vanilla recipes for recipes to replace
for(Object obj : recipes) for(Object obj : recipes)
{ {
if(obj instanceof ShapedRecipes) if(obj.getClass() == ShapedRecipes.class)
{ {
ShapedRecipes recipe = (ShapedRecipes)obj; ShapedRecipes recipe = (ShapedRecipes)obj;
ItemStack output = recipe.getRecipeOutput(); ItemStack output = recipe.getRecipeOutput();
@ -342,7 +342,7 @@ public class OreDictionary
recipesToAdd.add(new ShapedOreRecipe(recipe, replacements)); recipesToAdd.add(new ShapedOreRecipe(recipe, replacements));
} }
} }
else if(obj instanceof ShapelessRecipes) else if(obj.getClass() == ShapelessRecipes.class)
{ {
ShapelessRecipes recipe = (ShapelessRecipes)obj; ShapelessRecipes recipe = (ShapelessRecipes)obj;
ItemStack output = recipe.getRecipeOutput(); ItemStack output = recipe.getRecipeOutput();